Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Don't include <math.h> when HAVE_MATH_H isn't defined

  • Loading branch information
slouken committed Oct 12, 2008
1 parent de62535 commit 7f814eea8df4eb36f2fca8808c1853aae138a3a2
Showing with 33 additions and 3 deletions.
  1. +32 −0 XCodeiPhoneOS/Demos/DemosiPhoneOS.xcodeproj/project.pbxproj
  2. +0 −3 src/audio/SDL_audiocvt.c
  3. +1 −0 src/libm/math.h
@@ -720,6 +720,7 @@
"\"$(SRCROOT)/../SDLiPod/build/Release-iphoneos\"",
"\"$(SRCROOT)\"",
"\"$(SRCROOT)/../SDLiPod/build/Debug-iphonesimulator\"",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
PRODUCT_NAME = Rectangles;
};
@@ -738,6 +739,7 @@
"\"$(SRCROOT)/../SDLiPod/build/Release-iphoneos\"",
"\"$(SRCROOT)\"",
"\"$(SRCROOT)/../SDLiPod/build/Debug-iphonesimulator\"",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
PRODUCT_NAME = Rectangles;
};
@@ -791,6 +793,10 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
Foundation,
@@ -814,6 +820,10 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
Foundation,
@@ -839,6 +849,10 @@
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
Foundation,
@@ -863,6 +877,10 @@
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
Foundation,
@@ -891,6 +909,7 @@
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\\\\\\\"$(SRCROOT)\\\\\\\"",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
@@ -919,6 +938,7 @@
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\\\\\\\"$(SRCROOT)\\\\\\\"",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
@@ -945,6 +965,10 @@
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
Foundation,
@@ -969,6 +993,10 @@
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
Foundation,
@@ -997,6 +1025,7 @@
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\\\"$(SRCROOT)\\\"",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
@@ -1025,6 +1054,7 @@
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\\\"$(SRCROOT)\\\"",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
@@ -1054,6 +1084,7 @@
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
@@ -1082,6 +1113,7 @@
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
"\"$(SRCROOT)/../SDL/build/Debug-iphoneos\"",
);
OTHER_LDFLAGS = (
"-framework",
@@ -21,9 +21,6 @@
*/
#include "SDL_config.h"

#define _USE_MATH_DEFINES
#include <math.h>

/* Functions for audio drivers to perform runtime conversion of audio format */

#include "SDL_audio.h"
@@ -22,6 +22,7 @@
#include "SDL_config.h"

#ifdef HAVE_MATH_H
#define _USE_MATH_DEFINES
#include <math.h>
#else

0 comments on commit 7f814ee

Please sign in to comment.