[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for NSProcessInfo on Mingw
From: |
Issac Trotts |
Subject: |
Patch for NSProcessInfo on Mingw |
Date: |
Tue, 14 Mar 2006 16:32:57 -0800 |
I was getting this error while compiling gnustep-base-1.11.2 with gcc
3.4.2 (mingw-special):
Compiling file NSProcessInfo.m ...
NSProcessInfo.m: In function `_gnu_process_args':
NSProcessInfo.m:293: error: `fallbackInitialisation' undeclared (first
use in this function)
NSProcessInfo.m:293: error: (Each undeclared identifier is reported only once
NSProcessInfo.m:293: error: for each function it appears in.)
make[2]: *** [shared_obj/NSProcessInfo.o] Error 1
make[1]: *** [libgnustep-base.all.library.variables ] Error 2
make[1]: Leaving directory `/c/downloads/gnustep/gnustep-base-1.11.2/Source'
make: *** [internal-all] Error 2
until I made this change:
$ diff -Naur NSProcessInfo.m{.bak,}
--- NSProcessInfo.m.bak Tue Mar 14 16:24:46 2006
+++ NSProcessInfo.m Tue Mar 14 16:25:11 2006
@@ -163,6 +163,9 @@
* reasons, and it may be obtained through the +processInfo method.
*/
@implementation NSProcessInfo
+
+static BOOL fallbackInitialisation = NO;
+
/*************************************************************************
*** Static global vars
*************************************************************************/
@@ -1058,7 +1061,6 @@
@implementation NSProcessInfo (GNUstep)
static BOOL debugTemporarilyDisabled = NO;
-static BOOL fallbackInitialisation = NO;
/**
* Fallback method. The developer must call this method to initialize
Hope this helps,
Issac
- Patch for NSProcessInfo on Mingw,
Issac Trotts <=