Use correct module extension on cygwin
authorbooleanlabel at gmail dot com. Thanks <booleanlabel at gmail dot com. Thanks>
Thu, 18 Jun 2009 04:06:34 +0000 (04:06 +0000)
committerlmunch <lmunch@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 18 Jun 2009 04:06:34 +0000 (04:06 +0000)
Patch from: booleanlabel at gmail dot com. Thanks.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@41094 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_module.c

index c39aa34..9398ebe 100644 (file)
@@ -66,11 +66,11 @@ void *alloca (size_t);
  * @cond LOCAL
  */
 
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__CYGWIN__)
 # define MODULE_EXTENSION ".dll"
 #else
 # define MODULE_EXTENSION ".so"
-#endif /* ! _WIN32 */
+#endif /* !defined(_WIN32) && !defined(__CYGWIN__) */
 
 #define EINA_MODULE_SYMBOL_INIT "__eina_module_init"
 #define EINA_MODULE_SYMBOL_SHUTDOWN "__eina_module_shutdown"