win32 patch from Tor Lillqvist (glib-tml-981027-0), fixes some minor
authorManish Singh <yosh@src.gnome.org>
Tue, 27 Oct 1998 06:58:33 +0000 (06:58 +0000)
committerManish Singh <yosh@src.gnome.org>
Tue, 27 Oct 1998 06:58:33 +0000 (06:58 +0000)
win32 buglets

-Yosh

12 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gutils.c
glibconfig.h.win32
gutils.c
makefile.msc

index f555ed4..552ef24 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * glibconfig.h.win32
+       * gutils.c
+       * makefile.msc: win32 patch from Tor Lillqvist (glib-tml-981027-0),
+       fixes some minor win32 buglets
+
 Mon Oct 26 22:12:03 PST 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: reimplemented the endian stuff, using inline asm
index f555ed4..552ef24 100644 (file)
@@ -1,3 +1,10 @@
+Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * glibconfig.h.win32
+       * gutils.c
+       * makefile.msc: win32 patch from Tor Lillqvist (glib-tml-981027-0),
+       fixes some minor win32 buglets
+
 Mon Oct 26 22:12:03 PST 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: reimplemented the endian stuff, using inline asm
index f555ed4..552ef24 100644 (file)
@@ -1,3 +1,10 @@
+Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * glibconfig.h.win32
+       * gutils.c
+       * makefile.msc: win32 patch from Tor Lillqvist (glib-tml-981027-0),
+       fixes some minor win32 buglets
+
 Mon Oct 26 22:12:03 PST 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: reimplemented the endian stuff, using inline asm
index f555ed4..552ef24 100644 (file)
@@ -1,3 +1,10 @@
+Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * glibconfig.h.win32
+       * gutils.c
+       * makefile.msc: win32 patch from Tor Lillqvist (glib-tml-981027-0),
+       fixes some minor win32 buglets
+
 Mon Oct 26 22:12:03 PST 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: reimplemented the endian stuff, using inline asm
index f555ed4..552ef24 100644 (file)
@@ -1,3 +1,10 @@
+Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * glibconfig.h.win32
+       * gutils.c
+       * makefile.msc: win32 patch from Tor Lillqvist (glib-tml-981027-0),
+       fixes some minor win32 buglets
+
 Mon Oct 26 22:12:03 PST 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: reimplemented the endian stuff, using inline asm
index f555ed4..552ef24 100644 (file)
@@ -1,3 +1,10 @@
+Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * glibconfig.h.win32
+       * gutils.c
+       * makefile.msc: win32 patch from Tor Lillqvist (glib-tml-981027-0),
+       fixes some minor win32 buglets
+
 Mon Oct 26 22:12:03 PST 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: reimplemented the endian stuff, using inline asm
index f555ed4..552ef24 100644 (file)
@@ -1,3 +1,10 @@
+Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * glibconfig.h.win32
+       * gutils.c
+       * makefile.msc: win32 patch from Tor Lillqvist (glib-tml-981027-0),
+       fixes some minor win32 buglets
+
 Mon Oct 26 22:12:03 PST 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: reimplemented the endian stuff, using inline asm
index f555ed4..552ef24 100644 (file)
@@ -1,3 +1,10 @@
+Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * glibconfig.h.win32
+       * gutils.c
+       * makefile.msc: win32 patch from Tor Lillqvist (glib-tml-981027-0),
+       fixes some minor win32 buglets
+
 Mon Oct 26 22:12:03 PST 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: reimplemented the endian stuff, using inline asm
index b451b98..4062243 100644 (file)
@@ -322,14 +322,16 @@ g_get_current_dir (void)
 gchar*
 g_getenv (const gchar *variable)
 {
+#ifndef NATIVE_WIN32
   g_return_val_if_fail (variable != NULL, NULL);
 
-#ifndef NATIVE_WIN32
   return getenv (variable);
 #else
   gchar *v;
   guint l, k;
   gchar *p;
+
+  g_return_val_if_fail (variable != NULL, NULL);
   
   v = getenv (variable);
   if (!v)
index 4380c26..11035a2 100644 (file)
 /* Define if you have the ANSI C header files.  */
 #define STDC_HEADERS 1
 
+/* Define if your processor stores words with the most significant
+   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
+/* #undef WORDS_BIGENDIAN */
+
 /* #undef ENABLE_MEM_CHECK */
 /* #undef ENABLE_MEM_PROFILE */
 
index b451b98..4062243 100644 (file)
--- a/gutils.c
+++ b/gutils.c
@@ -322,14 +322,16 @@ g_get_current_dir (void)
 gchar*
 g_getenv (const gchar *variable)
 {
+#ifndef NATIVE_WIN32
   g_return_val_if_fail (variable != NULL, NULL);
 
-#ifndef NATIVE_WIN32
   return getenv (variable);
 #else
   gchar *v;
   guint l, k;
   gchar *p;
+
+  g_return_val_if_fail (variable != NULL, NULL);
   
   v = getenv (variable);
   if (!v)
index b8980fd..4798fdd 100644 (file)
@@ -63,7 +63,7 @@ gmodule_OBJECTS = \
        gmodule.obj
 
 gmodule-$(GLIB_VER).dll : $(gmodule_OBJECTS)
-       $(CC) $(CFLAGS) -MD -LD -Fegmodule-$(GLIB_VER).dll $(gmodule_OBJECTS) glib-$(GLIB_VER).lib $(LDFLAGS) /def:gmodule.def
+       $(CC) $(CFLAGS) -MD -LD -Fegmodule-$(GLIB_VER).dll $(gmodule_OBJECTS) glib-$(GLIB_VER).lib $(LDFLAGS) /def:gmodule\gmodule.def
 
 gmodule.obj : gmodule\gmodule.c gmodule\gmodule-win32.c
        $(CC) $(CFLAGS) -Igmodule -c -DG_LIB_DOMAIN=g_log_domain_gmodule gmodule\gmodule.c