[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with using `__declspec'
From: |
Paul Pluzhnikov |
Subject: |
Re: Help with using `__declspec' |
Date: |
Wed, 31 May 2006 11:26:19 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
romydmisc <romydmisc@gmail.com> writes:
> But when i try to compile it on linux, i get these errors:
> libserverusage.c: In function `__declspec':
> libserverusage.c:33: error: parse error before '{' token
That's because __declspec is a Windows-specific extension, which
UNIX compilers generally don't understand.
Here is one solution:
#if _MSC_VER /* compiling with MSVC */
#define DllExport __declspec( dllexport )
#else
#define DllExport /* nothing on UNIX */
#endif
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.