internal workaround for clang namespace pollution.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33993 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-10-14 15:46:13 +00:00
parent c5301052a1
commit eb8b275c1f
28 changed files with 39 additions and 81 deletions

View file

@ -1,3 +1,34 @@
2011-10-14 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBundle.m:
* Source/NSPathUtilities.m:
* Source/NSProcessInfo.m:
* Source/NSSocketPort.m:
* Source/NSRunLoop.m:
* Source/NSMessagePortNameServer.m:
* Source/unix/GSRunLoopCtxt.m:
* Source/unix/NSStream.m:
* Source/GSHTTPURLHandle.m:
* Source/NSPage.m:
* Source/NSMessagePort.m:
* Source/win32/GSFileHandle.m:
* Source/NSInvocation.m:
* Source/NSFileManager.m:
* Source/common.h:
* Source/NSString.m:
* Source/NSThread.m:
* Source/NSData.m:
* Source/NSHost.m:
* Source/GSNetwork.h:
* Source/NSPipe.m:
* Source/NSLog.m:
* Source/GSFormat.m:
* Source/GSFileHandle.m:
* Source/NSTask.m:
* SSL/GSSSLHandle.m:
* Tools/gdnc.m:
Move/wrap include of unistd.h to work around clang problem.
2011-10-14 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/Unicode.m:

View file

@ -84,9 +84,6 @@
#endif
#include <netdb.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
static NSString*
sslError(int err)

View file

@ -61,9 +61,6 @@
#include <netdb.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/*
* Stuff for setting the sockets into non-blocking mode.

View file

@ -83,9 +83,6 @@
#include <string.h> // for strstr()
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <fcntl.h>
#include <stdio.h>

View file

@ -50,9 +50,6 @@
#import "GSPrivate.h"
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/file.h>
#ifdef HAVE_SYS_FCNTL_H

View file

@ -28,10 +28,6 @@
Boston, MA 02111 USA.
*/
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

View file

@ -60,9 +60,6 @@ NSString * const NSBundleDidLoadNotification = @"NSBundleDidLoadNotification";
NSString * const NSShowNonLocalizedStrings = @"NSShowNonLocalizedStrings";
NSString * const NSLoadedClasses = @"NSLoadedClasses";
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <string.h>
static NSFileManager *

View file

@ -86,14 +86,10 @@
#import "GSPrivate.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* SEEK_* on SunOS 4 */
#endif
#ifdef HAVE_MMAP
#include <unistd.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <fcntl.h>
#ifndef MAP_FAILED
#define MAP_FAILED ((void*)-1) /* Failure address. */
#endif

View file

@ -77,9 +77,6 @@
# include <ndir.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif

View file

@ -42,9 +42,6 @@
#include <ws2tcpip.h>
#else
#include <netdb.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>

View file

@ -47,10 +47,6 @@
#include <sys/mman.h>
#endif
#if defined(HAVE_UNISTD_H)
#import <unistd.h>
#endif
#if defined(HAVE_MMAP)
# if !defined(MAP_ANONYMOUS)
# if defined(MAP_ANON)

View file

@ -62,11 +62,6 @@
# endif
#endif // HAVE_SYSLOG
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#import "GSPrivate.h"
extern NSThread *GSCurrentThread();

View file

@ -50,10 +50,6 @@
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/param.h> /* for MAXHOSTNAMELEN */
#include <sys/types.h>
#include <sys/un.h>

View file

@ -40,7 +40,6 @@
#import "GSPortPrivate.h"
#include <sys/stat.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <string.h>

View file

@ -27,9 +27,6 @@
#import "common.h"
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdio.h>
#if __mach__
#include <mach.h>

View file

@ -73,9 +73,6 @@
#import "GSPrivate.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h> // for getuid()
#endif
#ifdef HAVE_PWD_H
#include <pwd.h> // for getpwnam_r() and getpwuid_r()
#endif

View file

@ -30,9 +30,6 @@
#import "Foundation/NSFileHandle.h"
#import "GSPrivate.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/**
* <p>The NSPipe provides an encapsulation of the UNIX concept of pipe.<br />

View file

@ -55,9 +55,6 @@
*************************************************************************/
#import "common.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdio.h>
#include <string.h>

View file

@ -59,9 +59,6 @@
#ifdef HAVE_POLL_F
#include <poll.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <math.h>
#include <time.h>
#include <string.h> /* for memset() */

View file

@ -48,9 +48,6 @@
#import "GSNetwork.h"
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef __MINGW__
#define close closesocket

View file

@ -76,9 +76,6 @@
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "GSPrivate.h"
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <fcntl.h>
#include <stdio.h>

View file

@ -49,9 +49,6 @@
#import "GSPrivate.h"
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#if defined(__FreeBSD__) || defined(__OpenBSD__)
#include <fcntl.h>

View file

@ -33,9 +33,6 @@
#import "common.h"
#define EXPOSE_NSThread_IVARS 1
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_NANOSLEEP
#include <time.h>
#endif

View file

@ -47,3 +47,9 @@
#import "Foundation/NSBundle.h"
#import "GNUstepBase/NSBundle+GNUstepBase.h"
#ifdef HAVE_UNISTD_H
#define __block __gs_unistd_block
#include <unistd.h>
#undef __block
#endif

View file

@ -26,9 +26,6 @@
#ifdef HAVE_POLL_F
#include <poll.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#define FDCOUNT 128

View file

@ -24,8 +24,6 @@
#import "common.h"
#include <unistd.h>
#import "Foundation/NSData.h"
#import "Foundation/NSArray.h"
#import "Foundation/NSDictionary.h"

View file

@ -54,9 +54,6 @@
#include <stdio.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifndef O_BINARY
#ifdef _O_BINARY

View file

@ -20,7 +20,6 @@
#import "common.h"
#include <stdio.h>
#include <unistd.h>
#import "Foundation/NSArray.h"
#import "Foundation/NSAutoreleasePool.h"