changed OS X style SDL includes back to Linux style
This commit is contained in:
parent
0affc31f1e
commit
65c773cafb
|
@ -436,6 +436,11 @@
|
|||
"$(PROJECT_DIR)",
|
||||
);
|
||||
GCC_PREPROCESSOR_DEFINITIONS = "VERSION=\\\"1.5.1\\\"";
|
||||
HEADER_SEARCH_PATHS = (
|
||||
SDL2.framework/Headers,
|
||||
SDL2_mixer.framework/Headers,
|
||||
SDL2_image.framework/Headers,
|
||||
);
|
||||
INFOPLIST_FILE = starfighter/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = uk.me.fantastic.starfighter;
|
||||
|
@ -453,6 +458,11 @@
|
|||
"$(PROJECT_DIR)",
|
||||
);
|
||||
GCC_PREPROCESSOR_DEFINITIONS = "VERSION=\\\"1.5.1\\\"";
|
||||
HEADER_SEARCH_PATHS = (
|
||||
SDL2.framework/Headers,
|
||||
SDL2_mixer.framework/Headers,
|
||||
SDL2_image.framework/Headers,
|
||||
);
|
||||
INFOPLIST_FILE = starfighter/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = uk.me.fantastic.starfighter;
|
||||
|
|
|
@ -20,6 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include "Starfighter.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include "CoreFoundation/CoreFoundation.h"
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
bool cheatAttempt;
|
||||
|
|
|
@ -28,16 +28,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2_image/SDL_image.h>
|
||||
#include <SDL2_mixer/SDL_mixer.h>
|
||||
#include "CoreFoundation/CoreFoundation.h"
|
||||
#else
|
||||
#include "SDL.h"
|
||||
#include "SDL_image.h"
|
||||
#include "SDL_mixer.h"
|
||||
#endif
|
||||
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
|
|
@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
#include "Starfighter.h"
|
||||
|
||||
Uint32 red;
|
||||
|
|
|
@ -20,12 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#ifndef GLOBALS_H
|
||||
#define GLOBALS_H
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <SDL2/SDL.h>
|
||||
#else
|
||||
#include "SDL.h"
|
||||
#endif
|
||||
|
||||
|
||||
#include "defs.h"
|
||||
#include "structs.h"
|
||||
|
|
|
@ -17,12 +17,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <SDL2/SDL.h>
|
||||
#else
|
||||
#include "SDL.h"
|
||||
#endif
|
||||
|
||||
|
||||
#include "screen.h"
|
||||
|
||||
|
|
|
@ -19,6 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "SDL.h"
|
||||
|
||||
#include "engine.h"
|
||||
#include "gfx.h"
|
||||
#include "structs.h"
|
||||
|
|
|
@ -17,11 +17,7 @@ You should have received a copy of the GNU General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <SDL2/SDL.h>
|
||||
#else
|
||||
#include "SDL.h"
|
||||
#endif
|
||||
|
||||
#include "SDL.h"
|
||||
|
||||
SDL_Window *window;
|
||||
|
|
Loading…
Reference in New Issue