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);
}
HideMenuBar();
[NSMenu setMenuBarVisible:NO];
if ( singleDisplay )
{
@ -883,7 +883,7 @@ OSX_monitor::video_close()
{
if ( singleDisplay )
CGDisplayShowCursor(theDisplay);
ShowMenuBar();
[NSMenu setMenuBarVisible:YES];
CGDisplaySwitchToMode(theDisplay, originalMode);
CGDisplayRelease(theDisplay);
//[the_win deminiaturize: nil];

View File

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