fixed up for gcc-4.1

This commit is contained in:
David Anderson 2006-08-25 00:28:36 +00:00
parent 3878c7492a
commit a7fcf76244
5 changed files with 7 additions and 7 deletions

View File

@ -3,9 +3,9 @@
### EDIT BELOW FOR OTHER PROJECTS ###
OPT_FLAGS = -O3 -funroll-loops -s -pipe
OPT_FLAGS = -g -ggdb3 #-O3 -funroll-loops -s -pipe -fno-strict-aliasing
DEBUG_FLAGS = -g -ggdb3
CPP = gcc
CPP = gcc-4.1
BINARY = amxxpc
OBJECTS = amx.cpp amxxpc.cpp Binary.cpp

Binary file not shown.

View File

@ -3,9 +3,9 @@
### EDIT BELOW FOR OTHER PROJECTS ###
OPT_FLAGS = -O3 -funroll-loops -s -pipe
OPT_FLAGS = -O3 -funroll-loops -s -pipe -fno-strict-aliasing -fvisibility=hidden
DEBUG_FLAGS = -g -ggdb3
CPP = gcc
CPP = gcc-4.1
NAME = amxxpc
OBJECTS = sc1.c sc2.c sc3.c sc4.c sc5.c sc6.c sc7.c scvars.c scmemfil.c \

View File

@ -52,7 +52,7 @@
__declspec (dllexport)
void EXCOMPILER(int argc, char **argv)
# else
void extern EXCOMPILER(int argc, char **argv)
void extern __attribute__((visibility("default"))) EXCOMPILER(int argc, char **argv)
# endif
{
pc_compile(argc, argv);
@ -70,7 +70,7 @@
__declspec (dllexport)
int pc_printf(const char *message,...)
#else
extern int pc_printf(const char *message,...)
extern int __attribute__((visibility("default"))) pc_printf(const char *message,...)
#endif
#else
int pc_printf(const char *message, ...)

View File

@ -446,7 +446,7 @@ int pc_enablewarning(int number,int enable);
__declspec (dllexport)
int pc_printf(const char *message,...);
#else
extern int pc_printf(const char *message,...);
extern int __attribute__((visibility("default"))) pc_printf(const char *message,...);
#endif
#else
int pc_printf(const char *message, ...) INVISIBLE;