Get proper constant string class

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13104 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-03-13 16:49:56 +00:00
parent 10829cf509
commit dd9fbc55cd
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2002-03-13 Adam Fedor <fedor@gnu.org>
* Tools/gdomap.c (log): Redefine to gdomap_log to avoid conflict
with syslog function on Darwin.
* Source/NSProcessInfo.m (main): Use STRINIGFY to get proper
name of constant string class.
2002-03-13 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/gnustep/base/NSObjCRuntime.h: Remove bad markup in comments.

View file

@ -504,7 +504,7 @@ int main(int argc, char *argv[], char *env[])
/* This memcpy has to be done before the first message is sent to any
constant string object. See Apple Radar 2870817 */
memcpy(&_NSConstantStringClassReference,
objc_getClass("NSConstantString"),
objc_getClass(STRINGIFY(NXConstantString)),
sizeof(_NSConstantStringClassReference));
#endif

View file

@ -244,6 +244,9 @@ getopt(int argc, char **argv, char *options)
static char ebuf[2048];
/* Avoid conflict with syslog function */
#define log gdomap_log
#ifdef HAVE_SYSLOG
int log_perror = 0;