diff src/video/quartz/SDL_QuartzEvents.m @ 1338:604d73db6802

Removed uses of stdlib.h and string.h
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 09:29:18 +0000
parents 8eb191652834
children c71e05b4dc2e
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzEvents.m	Tue Feb 07 07:03:29 2006 +0000
+++ b/src/video/quartz/SDL_QuartzEvents.m	Tue Feb 07 09:29:18 2006 +0000
@@ -20,9 +20,9 @@
     slouken@libsdl.org
 */
 
+#include "SDL_stdlib.h"
 #include "SDL_QuartzVideo.h"
 
-#include <stdlib.h> // For getenv()
 #include <IOKit/IOMessage.h> // For wake from sleep detection
 #include <IOKit/pwr_mgt/IOPMLib.h> // For wake from sleep detection
 #include "SDL_QuartzKeys.h"
@@ -295,7 +295,7 @@
         }
     }
     
-    if (getenv ("SDL_ENABLEAPPEVENTS"))
+    if (SDL_getenv ("SDL_ENABLEAPPEVENTS"))
         [ NSApp sendEvent:event ];
 }
 
@@ -773,7 +773,7 @@
 
             switch (type) {
                 case NSLeftMouseDown:
-                    if ( getenv("SDL_HAS3BUTTONMOUSE") ) {
+                    if ( SDL_getenv("SDL_HAS3BUTTONMOUSE") ) {
                         DO_MOUSE_DOWN (SDL_BUTTON_LEFT);
                     } else {
                         if ( NSCommandKeyMask & current_mods ) {