mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Make usage of defines more consistent
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21792 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e57988b685
commit
5e151f100f
12 changed files with 78 additions and 62 deletions
|
@ -129,7 +129,7 @@ _NSLog_standard_printf_handler (NSString* message)
|
|||
len = [d length];
|
||||
}
|
||||
|
||||
#if defined(HAVE_SYSLOG) || defined(WIN32)
|
||||
#if defined(HAVE_SYSLOG) || defined(__WIN32__)
|
||||
if (GSUserDefaultsFlag(GSLogSyslog) == YES
|
||||
|| write(_NSLogDescriptor, buf, len) != (int)len)
|
||||
{
|
||||
|
@ -138,7 +138,7 @@ _NSLog_standard_printf_handler (NSString* message)
|
|||
strncpy (null_terminated_buf, buf, len);
|
||||
null_terminated_buf[len] = '\0';
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(__WIN32__)
|
||||
OutputDebugString(null_terminated_buf);
|
||||
if (!IsDebuggerPresent())
|
||||
{
|
||||
|
@ -164,7 +164,7 @@ _NSLog_standard_printf_handler (NSString* message)
|
|||
}
|
||||
#else
|
||||
syslog(SYSLOGMASK, "%s", null_terminated_buf);
|
||||
#endif // WIN32
|
||||
#endif // __WIN32__
|
||||
|
||||
objc_free (null_terminated_buf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue