Move the #if _WIN32 way inwards. This is needed to make
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 11 May 2009 18:46:19 +0000 (18:46 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 11 May 2009 18:46:19 +0000 (18:46 +0000)
the whole thing link under Linux - of course we are still
a long way from the code being usable.
Oh, compiling will only work if the windows types get
replaced by glib types, but that is for another patch.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28331 f5534014-38df-0310-8fa8-9805f1628bb7

airpcap_loader.c

index d9b7d8a3dd2b2eff2c17a0a002163a6d35c7d8b2..33b309fc344aa53fc403dd8fe96e00b340377503 100644 (file)
@@ -24,7 +24,6 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
-#ifdef _WIN32
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -2457,6 +2456,7 @@ int load_airpcap(void)
     BOOL base_functions = TRUE;
     BOOL eleven_n_functions = TRUE;
 
+#ifdef _WIN32
     if((AirpcapLib =  LoadLibrary(TEXT("airpcap.dll"))) == NULL)
     {
                /* Report the error but go on */
@@ -2516,6 +2516,9 @@ int load_airpcap(void)
                }
     }
     return AirpcapVersion;
+#else /* _WIN32 */
+    return AIRPCAP_DLL_NOT_FOUND;
+#endif /* _WIN32 */
 }
 
 /*
@@ -2546,4 +2549,3 @@ get_runtime_airpcap_version(GString *str)
        vrev, build);
 }
 #endif /* HAVE_AIRPCAP */
-#endif /* _WIN32 */