Fix build with SnowLeopard SDK.

This commit is contained in:
Alexei Svitkine 2012-07-04 22:22:00 -04:00
parent 005c573148
commit 8376a21804
2 changed files with 8 additions and 2 deletions

View File

@ -704,7 +704,7 @@ OSX_monitor::init_screen(video_mode &mode)
mode.bytes_per_row = CGDisplayBytesPerRow(theDisplay); mode.bytes_per_row = CGDisplayBytesPerRow(theDisplay);
} }
HideMenuBar(); [NSMenu setMenuBarVisible:NO];
if ( singleDisplay ) if ( singleDisplay )
{ {
@ -883,7 +883,7 @@ OSX_monitor::video_close()
{ {
if ( singleDisplay ) if ( singleDisplay )
CGDisplayShowCursor(theDisplay); CGDisplayShowCursor(theDisplay);
ShowMenuBar(); [NSMenu setMenuBarVisible:YES];
CGDisplaySwitchToMode(theDisplay, originalMode); CGDisplaySwitchToMode(theDisplay, originalMode);
CGDisplayRelease(theDisplay); CGDisplayRelease(theDisplay);
//[the_win deminiaturize: nil]; //[the_win deminiaturize: nil];

View File

@ -149,12 +149,18 @@ typedef long int32;
#error "No 4 byte type, you lose." #error "No 4 byte type, you lose."
#endif #endif
#if SIZEOF_LONG == 8 #if SIZEOF_LONG == 8
#ifndef _UINT64
typedef unsigned long uint64; typedef unsigned long uint64;
#define _UINT64
#endif
typedef long int64; typedef long int64;
#define VAL64(a) (a ## l) #define VAL64(a) (a ## l)
#define UVAL64(a) (a ## ul) #define UVAL64(a) (a ## ul)
#elif SIZEOF_LONG_LONG == 8 #elif SIZEOF_LONG_LONG == 8
#ifndef _UINT64
typedef unsigned long long uint64; typedef unsigned long long uint64;
#define _UINT64
#endif
typedef long long int64; typedef long long int64;
#define VAL64(a) (a ## LL) #define VAL64(a) (a ## LL)
#define UVAL64(a) (a ## uLL) #define UVAL64(a) (a ## uLL)