Line 0
Link Here
|
|
|
1 |
Index: fli2gif.cpp |
2 |
@@ -43,7 +43,9 @@ |
3 |
// ****************** |
4 |
#include <stdio.h> |
5 |
#include <stdlib.h> |
6 |
-#include <malloc.h> |
7 |
+#ifndef __STDC__ |
8 |
+# include <malloc.h> |
9 |
+#endif |
10 |
#include <string.h> |
11 |
#if defined(__TURBOC__) || defined(_MSC_VER) |
12 |
#include <conio.h> |
13 |
@@ -81,7 +83,7 @@ |
14 |
// *** Function prototypes *** |
15 |
// ***************************** |
16 |
void handle_error(int errorcode); |
17 |
-char *add_extension(char *filename, char *extension, BOOL enforce); |
18 |
+char *add_extension(char *filename, const char *extension, BOOL enforce); |
19 |
|
20 |
|
21 |
// ************************** |
22 |
@@ -95,7 +97,7 @@ |
23 |
//############################################################################ |
24 |
//############################################################################ |
25 |
//############################################################################ |
26 |
-void main(int argc, char *argv[]) |
27 |
+int main(int argc, char *argv[]) |
28 |
{ |
29 |
FILE *fp; |
30 |
int i, j; |
31 |
@@ -104,7 +106,7 @@ |
32 |
// []----------------[] |
33 |
// | Initialization | |
34 |
// []----------------[] |
35 |
- printf("FLI2GIF.EXE -- Automatic Flic to Animated GIF convertor, v1.1\n"); |
36 |
+ printf("FLI2GIF -- Automatic Flic to Animated GIF convertor, v1.1\n"); |
37 |
printf(" by JL Enterprises, 1996. (Compiled with " |
38 |
#if defined(__TURBOC__) |
39 |
"Borland" |
40 |
@@ -117,6 +119,8 @@ |
41 |
" for Windows" |
42 |
#elif defined(__MSDOS__) || defined(_DOS) |
43 |
" for MS-DOS" |
44 |
+ #elif defined(__FreeBSD__) |
45 |
+ " for FreeBSD" |
46 |
#endif |
47 |
")\n\n"); |
48 |
{ |
49 |
@@ -389,7 +393,7 @@ |
50 |
// Takes a user-entered filename and adds the specified extension if an |
51 |
// entension is not explicitly stated in the passed filename. A pointer |
52 |
// to a static buffer is returned. |
53 |
-char *add_extension(char *filename, char *extension, BOOL enforce) |
54 |
+char *add_extension(char *filename, const char *extension, BOOL enforce) |
55 |
{ |
56 |
static char Path[_MAX_PATH]; |
57 |
|