Browse Source

fix declspec some more

David Rose 21 years ago
parent
commit
ea51416fd6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dtool/Config.Win32.pp

+ 2 - 1
dtool/Config.Win32.pp

@@ -7,7 +7,8 @@
 //
 
 // What additional flags should we pass to interrogate?
-#define SYSTEM_IGATE_FLAGS -longlong __int64 -D_X86_ -DWIN32_VC -D"__declspec(param)=" -D_near  -D_far -D__near  -D__far -D_WIN32 -D__stdcall
+// NSPR versions prior to 4.4 used _declspec instead of __declspec.
+#define SYSTEM_IGATE_FLAGS -longlong __int64 -D_X86_ -DWIN32_VC -D"_declspec(param)=" -D"__declspec(param)=" -D_near  -D_far -D__near  -D__far -D_WIN32 -D__stdcall
 
 // Is the platform big-endian (like an SGI workstation) or
 // little-endian (like a PC)?  Define this to the empty string to