]> git.sesse.net Git - vlc/blobdiff - src/misc/modules_plugin.h.in
* ./include/*, ./src/*: separated WIN32 #tests and UNDER_CE #tests, because
[vlc] / src / misc / modules_plugin.h.in
index 8d16a59934a8a901f3f815a3af98e730a107f2e0..05a9676a709d8decb74c779dc7cdf75ed19ef7ab 100644 (file)
@@ -2,7 +2,7 @@
  * modules_plugin.h : Plugin management functions used by the core application.
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: modules_plugin.h.in,v 1.5 2002/10/31 11:16:30 sam Exp $
+ * $Id: modules_plugin.h.in,v 1.6 2002/11/11 14:39:12 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -37,7 +37,7 @@ static int module_load( const char * psz_filename, module_handle_t * handle )
     *handle = load_add_on( psz_filename );
     return( *handle < 0 );
 
-#elif defined(WIN32)
+#elif defined(WIN32) || defined(UNDER_CE)
     *handle = LoadLibrary( psz_filename );
     return( *handle == NULL ); 
 
@@ -74,7 +74,7 @@ static void module_unload( module_handle_t handle )
 #ifdef SYS_BEOS
     unload_add_on( handle );
 
-#elif defined(WIN32)
+#elif defined(WIN32) || defined(UNDER_CE)
     FreeLibrary( handle );
 
 #else
@@ -106,7 +106,7 @@ static void * _module_getsymbol( module_handle_t handle,
         return( NULL );
     }
 
-#elif defined(WIN32)
+#elif defined(WIN32) || defined(UNDER_CE)
     return( (void *)GetProcAddress( handle, psz_function ) );
 
 #else
@@ -149,7 +149,7 @@ static const char * module_error( char *psz_buffer )
 #if defined(SYS_BEOS)
     return( "failed" );
 
-#elif defined(WIN32)
+#elif defined(WIN32) || defined(UNDER_CE)
     int i, i_error = GetLastError();
 
     FormatMessage( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,