2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __NGStreams_common_H__
23 #define __NGStreams_common_H__
25 // common include files
27 #include <Foundation/Foundation.h>
38 #if LIB_FOUNDATION_BOEHM_GC
43 # include <objc/objc-api.h>
44 # include <objc/objc.h>
45 # include <objc/encoding.h>
48 #if WITH_FOUNDATION_EXT
49 #if NeXT_Foundation_LIBRARY || APPLE_Foundation_LIBRARY
50 # import <FoundationExt/objc-runtime.h>
51 # import <FoundationExt/DefaultScannerHandler.h>
52 # import <FoundationExt/PrintfFormatScanner.h>
53 # import <FoundationExt/GeneralExceptions.h>
54 # import <FoundationExt/MissingMethods.h>
55 # import <FoundationExt/NSException.h>
56 # import <FoundationExt/NSObjectMacros.h>
60 #if !LIB_FOUNDATION_LIBRARY && !NeXT_Foundation_LIBRARY
61 # define NSWillBecomeMultiThreadedNotification NSBecomingMultiThreaded
65 # define ASSIGN(object, value) \
66 ({id __object = (id)object; \
67 id __value = (id)value; \
68 if (__value != __object) { if (__value) [__value retain]; \
69 if (__object) [__object release]; \
73 #include <NGExtensions/NGExtensions.h>
77 #if !defined(__CYGWIN32__)
78 # ifdef HAVE_WINDOWS_H
81 # ifdef HAVE_WINSOCK_H
94 # include <sys/types.h>
98 # include <netinet/in.h>
101 #ifdef HAVE_SYS_SOCKET_H
102 # include <sys/socket.h>
108 #if !defined(WIN32) || defined(__CYGWIN32__)
109 # include <arpa/inet.h>
114 # define AF_LOCAL AF_UNIX
117 #if !defined(SHUT_RD)
120 #if !defined(SHUT_WR)
123 #if !defined(SHUT_RDWR)
129 #include "NGStreamExceptions.h"
131 @interface NSObject(OSXHacks)
132 - (void)subclassResponsibility:(SEL)_acmd;
133 - (void)notImplemented:(SEL)_acmd;
136 #endif /* __NGStreams_common_H__ */