[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3285 - trunk/pingus/src
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3285 - trunk/pingus/src |
Date: |
Thu, 18 Oct 2007 20:01:30 +0200 |
Author: grumbel
Date: 2007-10-18 20:01:30 +0200 (Thu, 18 Oct 2007)
New Revision: 3285
Modified:
trunk/pingus/src/pingus_main.cpp
Log:
- part of Dave Vasilevsky's <address@hidden> MacOSX patch
Modified: trunk/pingus/src/pingus_main.cpp
===================================================================
--- trunk/pingus/src/pingus_main.cpp 2007-10-18 17:54:01 UTC (rev 3284)
+++ trunk/pingus/src/pingus_main.cpp 2007-10-18 18:01:30 UTC (rev 3285)
@@ -35,6 +35,21 @@
#include "string_util.hpp"
#include "sexpr_file_reader.hpp"
+#if defined(__APPLE__)
+/* Can't use the include, some type names conflict.
+#include <CoreFoundation/CoreFoundation.h>
+*/
+extern "C" {
+ typedef unsigned char UInt8;
+ typedef void* CFTypeRef;
+ typedef CFTypeRef CFURLRef;
+ CFURLRef CFBundleGetMainBundle(void);
+ CFURLRef CFBundleCopyResourcesDirectoryURL(CFTypeRef);
+ bool CFURLGetFileSystemRepresentation(CFURLRef, bool, UInt8*, int);
+ void CFRelease(CFTypeRef);
+}
+#endif
+
#include "SDL.h"
#ifdef ENABLE_BINRELOC
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3285 - trunk/pingus/src,
grumbel at BerliOS <=