Don't define WIN32 and NATIVE_WIN32.

1999-10-05  Tor Lillqvist  <tml@iki.fi>

* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.

* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.

* build-dll: Don't strip.

* gmodule.h: (Win32) Use __declspec(dllexport) in G_MODULE_EXPORT
only with gcc.
This commit is contained in:
Tor Lillqvist 1999-10-04 23:04:34 +00:00 committed by Tor Lillqvist
parent 65ef92cea4
commit 7359af948d
16 changed files with 76 additions and 13 deletions

View File

@ -1,3 +1,11 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN

View File

@ -1,3 +1,11 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN

View File

@ -1,3 +1,11 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN

View File

@ -1,3 +1,11 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN

View File

@ -1,3 +1,11 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN

View File

@ -1,3 +1,11 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN

View File

@ -1,3 +1,11 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN

View File

@ -1,3 +1,11 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
* build-dll: Don't strip.
Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:46:55 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN * configure.in: use G_HAVE_CYGWIN instead of G_OS_FEATURE_CYGWIN

View File

@ -29,9 +29,9 @@ for F in $ldargs; do
esac esac
done done
$GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base -o $dllfile $ldargs && $GCC -mdll -mno-cygwin -Wl,--base-file,$library.base -o $dllfile $ldargs &&
$DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs && $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs &&
$GCC -s -mdll -mno-cygwin -Wl,--base-file,$library.base,$library.exp -o $dllfile $ldargs && $GCC -mdll -mno-cygwin -Wl,--base-file,$library.base,$library.exp -o $dllfile $ldargs &&
$DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs && $DLLTOOL --as=$AS --dllname $dllfile $defswitch --base-file $library.base --output-exp $library.exp $objs &&
$GCC -mdll -mno-cygwin -Wl,$library.exp -o $dllfile $ldargs && $GCC -mdll -mno-cygwin -Wl,$library.exp -o $dllfile $ldargs &&
$DLLTOOL --as=$AS --dllname $dllfile $defswitch --output-lib lib$libname.a $objs $DLLTOOL --as=$AS --dllname $dllfile $defswitch --output-lib lib$libname.a $objs

View File

@ -143,7 +143,7 @@ g_on_error_query (const gchar *prg_name)
if (!prg_name) if (!prg_name)
prg_name = g_get_prgname (); prg_name = g_get_prgname ();
MessageBox (NULL, "Terminating", MessageBox (NULL, "g_on_error_query called, program terminating",
(prg_name && *prg_name) ? prg_name : NULL, (prg_name && *prg_name) ? prg_name : NULL,
MB_OK|MB_ICONERROR); MB_OK|MB_ICONERROR);
_exit(0); _exit(0);

View File

@ -143,7 +143,7 @@ g_on_error_query (const gchar *prg_name)
if (!prg_name) if (!prg_name)
prg_name = g_get_prgname (); prg_name = g_get_prgname ();
MessageBox (NULL, "Terminating", MessageBox (NULL, "g_on_error_query called, program terminating",
(prg_name && *prg_name) ? prg_name : NULL, (prg_name && *prg_name) ? prg_name : NULL,
MB_OK|MB_ICONERROR); MB_OK|MB_ICONERROR);
_exit(0); _exit(0);

View File

@ -143,7 +143,7 @@ g_on_error_query (const gchar *prg_name)
if (!prg_name) if (!prg_name)
prg_name = g_get_prgname (); prg_name = g_get_prgname ();
MessageBox (NULL, "Terminating", MessageBox (NULL, "g_on_error_query called, program terminating",
(prg_name && *prg_name) ? prg_name : NULL, (prg_name && *prg_name) ? prg_name : NULL,
MB_OK|MB_ICONERROR); MB_OK|MB_ICONERROR);
_exit(0); _exit(0);

View File

@ -143,7 +143,7 @@ g_on_error_query (const gchar *prg_name)
if (!prg_name) if (!prg_name)
prg_name = g_get_prgname (); prg_name = g_get_prgname ();
MessageBox (NULL, "Terminating", MessageBox (NULL, "g_on_error_query called, program terminating",
(prg_name && *prg_name) ? prg_name : NULL, (prg_name && *prg_name) ? prg_name : NULL,
MB_OK|MB_ICONERROR); MB_OK|MB_ICONERROR);
_exit(0); _exit(0);

View File

@ -185,12 +185,6 @@ struct _GStaticMutex
#define G_HAVE_WCHAR_H 1 #define G_HAVE_WCHAR_H 1
#define G_HAVE_WCTYPE_H 1 #define G_HAVE_WCTYPE_H 1
/* Define if this is Win32, possibly using the Cygwin emulation layer. */
#define WIN32 1
/* Define if this is Win32 using the Microsoft C runtime. */
#define NATIVE_WIN32 1
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */

View File

@ -1,3 +1,8 @@
1999-10-05 Tor Lillqvist <tml@iki.fi>
* gmodule.h: (Win32) Use __declspec(dllexport) in G_MODULE_EXPORT
only with gcc.
Sun Oct 3 19:30:52 PDT 1999 Manish Singh <yosh@gimp.org> Sun Oct 3 19:30:52 PDT 1999 Manish Singh <yosh@gimp.org>
* gmodule.h * gmodule.h

View File

@ -40,7 +40,7 @@ extern const char *g_log_domain_gmodule;
* to feature Windows dll stubs. * to feature Windows dll stubs.
*/ */
#define G_MODULE_IMPORT extern #define G_MODULE_IMPORT extern
#ifdef G_OS_WIN32 #if defined (G_OS_WIN32) && defined (__GNUC__)
# define G_MODULE_EXPORT __declspec(dllexport) # define G_MODULE_EXPORT __declspec(dllexport)
#else /* !G_OS_WIN32 */ #else /* !G_OS_WIN32 */
# define G_MODULE_EXPORT # define G_MODULE_EXPORT