summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2001-09-11 20:38:49 +0000
committerSam Lantinga <slouken@libsdl.org>2001-09-11 20:38:49 +0000
commitc0412c2a37835b1769da41cf2e8b9b107fd12c4b (patch)
treeb6180eed0b522771e71c33b846a59f8850eb65d1 /include
parent6de0291d84543f80bd007e7453dbad5403ae3e61 (diff)
Added initial support for EPOC/Symbian OS (thanks Hannu!)
Diffstat (limited to 'include')
-rw-r--r--include/SDL_byteorder.h1
-rw-r--r--include/SDL_main.h2
-rw-r--r--include/SDL_types.h5
-rw-r--r--include/begin_code.h6
4 files changed, 13 insertions, 1 deletions
diff --git a/include/SDL_byteorder.h b/include/SDL_byteorder.h
index 061a6be65e..00671b8431 100644
--- a/include/SDL_byteorder.h
+++ b/include/SDL_byteorder.h
@@ -43,6 +43,7 @@ static char rcsid =
(defined(__alpha__) || defined(__alpha)) || \
defined(__arm__) || \
(defined(__mips__) && defined(__MIPSEL__)) || \
+ defined(__SYMBIAN32__) || \
defined(__LITTLE_ENDIAN__)
#define SDL_BYTEORDER SDL_LIL_ENDIAN
#else
diff --git a/include/SDL_main.h b/include/SDL_main.h
index 2783d45ead..d80e68f419 100644
--- a/include/SDL_main.h
+++ b/include/SDL_main.h
@@ -31,7 +31,7 @@ static char rcsid =
/* Redefine main() on Win32 and MacOS so that it is called by winmain.c */
#if defined(WIN32) || (defined(__MWERKS__) && !defined(__BEOS__)) || \
- defined(macintosh) || defined(__APPLE__)
+ defined(macintosh) || defined(__APPLE__) || defined(__SYMBIAN32__)
#ifdef __cplusplus
#define C_LINKAGE "C"
diff --git a/include/SDL_types.h b/include/SDL_types.h
index 2e9c26ab1c..32792d9c10 100644
--- a/include/SDL_types.h
+++ b/include/SDL_types.h
@@ -54,6 +54,11 @@ typedef signed int Sint32;
#endif
#endif /* !__STRICT_ANSI__ */
+/* The 64-bit type isn't available on EPOC/Symbian OS */
+#ifdef __SYMBIAN32__
+#undef SDL_HAS_64BIT_TYPE
+#endif
+
/* The 64-bit datatype isn't supported on all platforms */
#ifdef SDL_HAS_64BIT_TYPE
typedef unsigned SDL_HAS_64BIT_TYPE Uint64;
diff --git a/include/begin_code.h b/include/begin_code.h
index 10f1414965..45ffeafd9e 100644
--- a/include/begin_code.h
+++ b/include/begin_code.h
@@ -48,6 +48,12 @@
# endif
#endif
+/* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
+#ifdef __SYMBIAN32__
+#undef DECLSPEC
+#define DECLSPEC
+#endif // __SYMBIAN32__
+
/* Force structure packing at 4 byte alignment.
This is necessary if the header is included in code which has structure
packing set to an alternate value, say for loading structures from disk.