r15447 - gnucash/trunk/lib/glib28 - Fix glib28 utils on non-win32 system.

David Hampton hampton at cvs.gnucash.org
Sun Jan 28 01:19:46 EST 2007


Author: hampton
Date: 2007-01-28 01:19:45 -0500 (Sun, 28 Jan 2007)
New Revision: 15447
Trac: http://svn.gnucash.org/trac/changeset/15447

Modified:
   gnucash/trunk/lib/glib28/Makefile.am
   gnucash/trunk/lib/glib28/gfileutils-2.8.c
Log:
Fix glib28 utils on non-win32 system.

Modified: gnucash/trunk/lib/glib28/Makefile.am
===================================================================
--- gnucash/trunk/lib/glib28/Makefile.am	2007-01-28 05:24:56 UTC (rev 15446)
+++ gnucash/trunk/lib/glib28/Makefile.am	2007-01-28 06:19:45 UTC (rev 15447)
@@ -1,8 +1,12 @@
 noinst_LTLIBRARIES = libgnc-glib.la
 
 DUMMYSRCS = dummy.c
-REALSRCS = gfileutils-2.8.c gwin32-2.8.c
-REALHDRS = gfileutils-2.8.h gstdio-2.8.h gwin32-2.8.h
+REALSRCS = gfileutils-2.8.c
+REALHDRS = gfileutils-2.8.h
+if PLATFORM_WIN32
+REALSRCS += gwin32-2.8.c
+REALHDRS += gstdio-2.8.h gwin32-2.8.h
+endif
 
 if HAVE_GLIB_2_8
 libgnc_glib_la_SOURCES = ${DUMMYSRCS}

Modified: gnucash/trunk/lib/glib28/gfileutils-2.8.c
===================================================================
--- gnucash/trunk/lib/glib28/gfileutils-2.8.c	2007-01-28 05:24:56 UTC (rev 15446)
+++ gnucash/trunk/lib/glib28/gfileutils-2.8.c	2007-01-28 06:19:45 UTC (rev 15447)
@@ -23,6 +23,7 @@
 #include "config.h"
 
 #include <glib.h>
+#include "gfileutils-2.8.h"
 
 #include <sys/stat.h>
 #ifdef HAVE_UNISTD_H
@@ -55,8 +56,8 @@
 #endif
 
 #include <glib/gstdio.h>
+#define _(String) (String)
 
-
 static gboolean
 rename_file (const char *old_name,
 	     const char *new_name,



More information about the gnucash-changes mailing list