changeset 4907:a2cf0174e5ab

Fix incorrect shape include and add HAVE_ATAN and HAVE_ATAN2 for OSX builds. -- user: Andreas Schiffler <aschiffler@ferzkopp.net> branch 'default' changed include/SDL_config_macosx.h changed src/video/cocoa/SDL_cocoashape.m
author Andreas Schiffler <aschiffler@ferzkopp.net>
date Tue, 16 Nov 2010 07:03:26 -0800
parents 67acc9ab60ff
children 9b9dc9fc7df2
files include/SDL_config_macosx.h src/video/cocoa/SDL_cocoashape.m
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_config_macosx.h	Sat Oct 16 17:15:19 2010 -0700
+++ b/include/SDL_config_macosx.h	Tue Nov 16 07:03:26 2010 -0800
@@ -108,6 +108,8 @@
 #define HAVE_NANOSLEEP	1
 #define HAVE_SYSCONF	1
 #define HAVE_SYSCTLBYNAME 1
+#define HAVE_ATAN 1
+#define HAVE_ATAN2 1
 
 /* Enable various audio drivers */
 #define SDL_AUDIO_DRIVER_COREAUDIO	1
--- a/src/video/cocoa/SDL_cocoashape.m	Sat Oct 16 17:15:19 2010 -0700
+++ b/src/video/cocoa/SDL_cocoashape.m	Tue Nov 16 07:03:26 2010 -0800
@@ -23,7 +23,7 @@
 #include "SDL_cocoavideo.h"
 #include "SDL_shape.h"
 #include "SDL_cocoashape.h"
-#include "../src/video/SDL_sysvideo.h"
+#include "../SDL_sysvideo.h"
 
 SDL_WindowShaper*
 Cocoa_CreateShaper(SDL_Window* window) {