+2005-01-09 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGExtensions/AutoDefines.h, common.h: fixed defines on MacOSX (fixes
+ OGo bug #912 (v4.5.141)
+
2004-12-16 Marcus Mueller <znek@mulle-kybernetik.com>
* NGCalendarDateRange.[hm]: new convenience method -containsDateRange:
#ifndef __NGExtensions_AutoDefines_H__
#define __NGExtensions_AutoDefines_H__
+// TODO: can we remove that?
+
#if defined(__MINGW32__)
# define WITH_OPENSTEP 0
# define GNUSTEP 1
+
#elif defined(__CYGWIN32__)
# define WITH_OPENSTEP 0
# ifndef GNUSTEP
# define GNUSTEP 1
# endif
+
#elif defined(NeXT) || defined(WIN32)
# define WITH_OPENSTEP 1
# define GNUSTEP 0
# ifndef NeXT_RUNTIME
# define NeXT_RUNTIME 1
# endif
+
+#elif defined(__APPLE__)
+# ifndef WITH_OPENSTEP
+# define WITH_OPENSTEP 1
+# endif
+# if !GNU_RUNTIME
+# ifndef NeXT_RUNTIME
+# define NeXT_RUNTIME 1
+# endif
+# ifndef APPLE_RUNTIME
+# define APPLE_RUNTIME 1
+# endif
+# endif
+# if !GNUSTEP_BASE_LIBRARY && !LIB_FOUNDATION_LIBRARY
+# ifndef COCOA_Foundation_LIBRARY
+# define COCOA_Foundation_LIBRARY 1
+# endif
+# ifndef NeXT_Foundation_LIBRARY
+# define NeXT_Foundation_LIBRARY 1
+# endif
+# ifndef APPLE_Foundation_LIBRARY
+# define APPLE_Foundation_LIBRARY 1
+# endif
+# endif
+
#else
# define WITH_OPENSTEP 0
# define GNUSTEP 1
# version
-SUBMINOR_VERSION:=140
+SUBMINOR_VERSION:=141
# v4.3.115 requires libFoundation v1.0.59
# v4.2.72 requires libEOControl v4.2.39
#import <Foundation/Foundation.h>
#import <Foundation/NSMapTable.h>
+#include <NGExtensions/AutoDefines.h>
+
#if defined(WIN32)
# include <windows.h>
#elif defined(NeXT) || NeXT_Foundation_LIBRARY
#include <unistd.h>
#endif
-#if defined(__MINGW32__)
-# define WITH_OPENSTEP 0
-# define GNUSTEP 1
-#elif defined(NeXT) || defined(WIN32)
-# define WITH_OPENSTEP 1
-# define GNUSTEP 0
-# ifndef NeXT_RUNTIME
-# define NeXT_RUNTIME 1
-# endif
-#else
-# define WITH_OPENSTEP 0
-# define GNUSTEP 1
+#if GNU_RUNTIME
+# import <objc/objc-api.h>
+# import <objc/objc.h>
+# import <objc/encoding.h>
#endif
#if LIB_FOUNDATION_LIBRARY
# include <time.h>
-# import <objc/objc-api.h>
-# import <objc/objc.h>
-# import <objc/encoding.h>
# import <extensions/objc-runtime.h>
#endif
object = __value;}})
#endif
-#if defined(LIB_FOUNDATION_LIBRARY)
+#if LIB_FOUNDATION_LIBRARY
# define NoZone nil
#else
# define NoZone NULL