summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>1999-04-24 13:52:51 +0000
committerTor Lillqvist <tml@src.gnome.org>1999-04-24 13:52:51 +0000
commit2aa1277d60f63d283a955d40cc681f1d30a067e8 (patch)
tree536d4653239139bc39cc6dff0505f13297ab5e35 /gmodule
parent0269749a67899057d1e861d9b0beebd8e84ae067 (diff)
downloadglib-2aa1277d60f63d283a955d40cc681f1d30a067e8.tar.gz
Support added for building using a GNU toolchain on Win32,
i.e. gcc -mno-cygwin on cygwin (a.k.a. mingw32, using egcs-1.1.2). * README.win32: Updated. * build-dll makefile.cygwin tests/makefile.cygwin: New files. * glib.h glib.def glibconfig.h.win32 makefile.msc: Slight updates. * gmain.c: No need to include <fcntl.h> and <io.h> on Win32. * gmain.c gutils.c testglib.c tests/string-test.c: Test for NATIVE_WIN32, not _MSC_VER. * gmutex.c: Must declare g_thread_functions_for_glib_use as exported (using the GUTILS_C_VAR macro). * gutils.c gmodule/libgplugin_[ab].c: LibMain not needed. * gmodule/gmoduleconf.h.win32: Need underscore with gcc. * gthread/gthread.c: With gcc on Win32, must use memcpy to assign value of g_thread_functions_for_glib_use (?). * makefile.msc tests/makefile.msc: Cosmetics.
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/libgplugin_a.c10
-rw-r--r--gmodule/libgplugin_b.c10
2 files changed, 0 insertions, 20 deletions
diff --git a/gmodule/libgplugin_a.c b/gmodule/libgplugin_a.c
index 91b928d0d..d6f5bb514 100644
--- a/gmodule/libgplugin_a.c
+++ b/gmodule/libgplugin_a.c
@@ -27,16 +27,6 @@
#include <gmodule.h>
#include <stdlib.h>
-#if defined (NATIVE_WIN32) && defined (__LCC__)
-int __stdcall
-LibMain(void *hinstDll,
- unsigned long dwReason,
- void *reserved)
-{
- return 1;
-}
-#endif /* NATIVE_WIN32 && __LCC__ */
-
G_MODULE_EXPORT void
gplugin_a_func (void)
{
diff --git a/gmodule/libgplugin_b.c b/gmodule/libgplugin_b.c
index 109e04853..be2795b66 100644
--- a/gmodule/libgplugin_b.c
+++ b/gmodule/libgplugin_b.c
@@ -26,16 +26,6 @@
#include <gmodule.h>
-#if defined (NATIVE_WIN32) && defined (__LCC__)
-int __stdcall
-LibMain(void *hinstDll,
- unsigned long dwReason,
- void *reserved)
-{
- return 1;
-}
-#endif /* NATIVE_WIN32 && __LCC__ */
-
G_MODULE_EXPORT const gchar*
g_module_check_init (GModule *module)
{