Ugly hack to get around ELF garbage

This commit is contained in:
David Anderson
2005-09-18 01:14:44 +00:00
parent 58dd553d00
commit dcf39196d5
3 changed files with 15 additions and 6 deletions

View File

@ -65,12 +65,16 @@
* purpose messages; errors go through pc_error(). The function is modelled
* after printf().
*/
#if PAWN_CELL_SIZE==32
#if defined __WIN32__ || defined _WIN32 || defined WIN32
__declspec (dllexport)
int pc_printf(const char *message,...)
#else
extern int pc_printf(const char *message,...)
#endif
#else
int pc_printf(const char *message, ...)
#endif
{
#if PAWN_CELL_SIZE==32
int ret;