Make DLL exports work for other win32 compilers, per Dimitry Andric's suggestion
authorcwolf <cwolf@xiph.org>
Thu, 18 Oct 2001 23:29:29 +0000 (23:29 +0000)
committercwolf <cwolf@xiph.org>
Thu, 18 Oct 2001 23:29:29 +0000 (23:29 +0000)
svn path=/trunk/vorbis/; revision=2164

lib/registry.h

index 3cc0441..967abbc 100644 (file)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: registry for time, floor, res backends and channel mappings
- last mod: $Id: registry.h,v 1.9 2001/10/18 17:35:44 cwolf Exp $
+ last mod: $Id: registry.h,v 1.10 2001/10/18 23:29:29 cwolf Exp $
 
  ********************************************************************/
 
@@ -25,8 +25,8 @@
 #define VI_RESB 3
 #define VI_MAPB 1
 
-#if defined(_MSC_VER) && defined(DLL_IMPORT)
-# define EXTERN _declspec(dllimport) extern
+#if defined(_WIN32) && defined(VORBISDLL_IMPORT)
+# define EXTERN __declspec(dllimport) extern
 #else
 # define EXTERN extern
 #endif