mirror of
https://github.com/holub/mame
synced 2025-06-08 22:03:55 +03:00
Fix build with Xcode 7 (nw)
This commit is contained in:
parent
6b79dc2275
commit
459c86dee3
4
makefile
4
makefile
@ -718,21 +718,19 @@ CHECK_CLANG :=
|
|||||||
else
|
else
|
||||||
GCC_VERSION := $(shell $(subst @,,$(CC)) -dumpversion 2> /dev/null)
|
GCC_VERSION := $(shell $(subst @,,$(CC)) -dumpversion 2> /dev/null)
|
||||||
ifneq ($(OS),solaris)
|
ifneq ($(OS),solaris)
|
||||||
CLANG_VERSION := $(shell clang --version 2> /dev/null | head -n 1 | grep '[0-9]\.[0-9]' -o | tail -n 1)
|
CLANG_VERSION := $(shell clang --version 2> /dev/null | head -n 1 | grep -e 'version [0-9]\.[0-9]\(\.[0-9]\)\?' -o | grep -e '[0-9]\.[0-9]\(\.[0-9]\)\?' -o | tail -n 1)
|
||||||
endif
|
endif
|
||||||
PYTHON_AVAILABLE := $(shell $(PYTHON) --version > /dev/null 2>&1 && echo python)
|
PYTHON_AVAILABLE := $(shell $(PYTHON) --version > /dev/null 2>&1 && echo python)
|
||||||
CHECK_CLANG := $(shell gcc --version 2> /dev/null | grep 'clang' | head -n 1)
|
CHECK_CLANG := $(shell gcc --version 2> /dev/null | grep 'clang' | head -n 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGETOS),macosx)
|
ifeq ($(TARGETOS),macosx)
|
||||||
ifneq (,$(findstring 3.,$(CLANG_VERSION)))
|
|
||||||
ifeq ($(ARCHITECTURE),_x64)
|
ifeq ($(ARCHITECTURE),_x64)
|
||||||
ARCHITECTURE := _x64_clang
|
ARCHITECTURE := _x64_clang
|
||||||
else
|
else
|
||||||
ARCHITECTURE := _x86_clang
|
ARCHITECTURE := _x86_clang
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(PYTHON_AVAILABLE),python)
|
ifneq ($(PYTHON_AVAILABLE),python)
|
||||||
$(error Python is not available in path)
|
$(error Python is not available in path)
|
||||||
|
@ -1000,6 +1000,11 @@ end
|
|||||||
"-Wno-extern-c-compat",
|
"-Wno-extern-c-compat",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
if (version >= 70000) then
|
||||||
|
buildoptions {
|
||||||
|
"-Wno-tautological-undefined-compare",
|
||||||
|
}
|
||||||
|
end
|
||||||
else
|
else
|
||||||
if (version == 40201) then
|
if (version == 40201) then
|
||||||
buildoptions {
|
buildoptions {
|
||||||
|
@ -404,7 +404,7 @@ static void debugwin_view_update(debug_view &view, void *osdprivate)
|
|||||||
[text addAttribute:NSFontAttributeName value:font range:run];
|
[text addAttribute:NSFontAttributeName value:font range:run];
|
||||||
NSPasteboard *const board = [NSPasteboard generalPasteboard];
|
NSPasteboard *const board = [NSPasteboard generalPasteboard];
|
||||||
[board declareTypes:[NSArray arrayWithObject:NSRTFPboardType] owner:nil];
|
[board declareTypes:[NSArray arrayWithObject:NSRTFPboardType] owner:nil];
|
||||||
[board setData:[text RTFFromRange:run documentAttributes:nil] forType:NSRTFPboardType];
|
[board setData:[text RTFFromRange:run documentAttributes:@{}] forType:NSRTFPboardType];
|
||||||
[text deleteCharactersInRange:run];
|
[text deleteCharactersInRange:run];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
[breakScroll setBorderType:NSNoBorder];
|
[breakScroll setBorderType:NSNoBorder];
|
||||||
[breakScroll setDocumentView:breakView];
|
[breakScroll setDocumentView:breakView];
|
||||||
[breakView release];
|
[breakView release];
|
||||||
breakTab = [[NSTabViewItem alloc] initWithIdentifier:nil];
|
breakTab = [[NSTabViewItem alloc] initWithIdentifier:@""];
|
||||||
[breakTab setView:breakScroll];
|
[breakTab setView:breakScroll];
|
||||||
[breakScroll release];
|
[breakScroll release];
|
||||||
|
|
||||||
@ -89,7 +89,7 @@
|
|||||||
[watchScroll setBorderType:NSNoBorder];
|
[watchScroll setBorderType:NSNoBorder];
|
||||||
[watchScroll setDocumentView:watchView];
|
[watchScroll setDocumentView:watchView];
|
||||||
[watchView release];
|
[watchView release];
|
||||||
watchTab = [[NSTabViewItem alloc] initWithIdentifier:nil];
|
watchTab = [[NSTabViewItem alloc] initWithIdentifier:@""];
|
||||||
[watchTab setView:watchScroll];
|
[watchTab setView:watchScroll];
|
||||||
[watchScroll release];
|
[watchScroll release];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user