diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-02-25 13:01:33 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-02-25 13:01:33 +0300 |
commit | 3cd4110f786aae1cd600d9c0049d929ee7e34624 (patch) | |
tree | b3944ad12a3a28c1a548283352527ba48a081b9a | |
parent | 47d2353f262b967dfdc344bde39040c6f92d0db2 (diff) |
fix #if errors, add defined() in proper places
doxygen: add file tags
-rw-r--r-- | source/creator/buildinfo.c | 5 | ||||
-rw-r--r-- | source/creator/creator.c | 13 |
2 files changed, 14 insertions, 4 deletions
diff --git a/source/creator/buildinfo.c b/source/creator/buildinfo.c index 65a3c432c86..48a4352b11b 100644 --- a/source/creator/buildinfo.c +++ b/source/creator/buildinfo.c @@ -27,6 +27,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file creator/buildinfo.c + * \ingroup creator + */ + + #ifdef WITH_BUILDINFO_HEADER #include "buildinfo.h" #endif diff --git a/source/creator/creator.c b/source/creator/creator.c index 79c2829b006..35b13e88d64 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -27,6 +27,11 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file creator/creator.c + * \ingroup creator + */ + + #if defined(__linux__) && defined(__GNUC__) #define _GNU_SOURCE #include <fenv.h> @@ -34,7 +39,7 @@ #define OSX_SSE_FPE (defined(__APPLE__) && (defined(__i386__) || defined(__x86_64__))) -#if OSX_SSE_FPE +#if defined(OSX_SSE_FPE) #include <xmmintrin.h> #endif @@ -151,7 +156,7 @@ char btempdir[FILE_MAX]; static void setCallbacks(void); /* set breakpoints here when running in debug mode, useful to catch floating point errors */ -#if defined(__sgi) || defined(__linux__) || defined(_WIN32) || OSX_SSE_FPE +#if defined(__sgi) || defined(__linux__) || defined(_WIN32) || defined(OSX_SSE_FPE) static void fpe_handler(int UNUSED(sig)) { // printf("SIGFPE trapped\n"); @@ -383,7 +388,7 @@ static int debug_mode(int UNUSED(argc), const char **UNUSED(argv), void *data) static int set_fpe(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) { -#if defined(__sgi) || defined(__linux__) || defined(_WIN32) || OSX_SSE_FPE +#if defined(__sgi) || defined(__linux__) || defined(_WIN32) || defined(OSX_SSE_FPE) /* zealous but makes float issues a heck of a lot easier to find! * set breakpoints on fpe_handler */ signal(SIGFPE, fpe_handler); @@ -391,7 +396,7 @@ static int set_fpe(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(dat # if defined(__linux__) && defined(__GNUC__) feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW ); # endif /* defined(__linux__) && defined(__GNUC__) */ -# if OSX_SSE_FPE +# if defined(OSX_SSE_FPE) /* OSX uses SSE for floating point by default, so here * use SSE instructions to throw floating point exceptions */ _MM_SET_EXCEPTION_MASK(_MM_MASK_MASK &~ |