Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
diff --git a/Mac/Modules/res/resscan.py b/Mac/Modules/res/resscan.py
index 18499e3..b417cd7 100644
--- a/Mac/Modules/res/resscan.py
+++ b/Mac/Modules/res/resscan.py
@@ -50,7 +50,7 @@
 			
 	def makegreylist(self):
 		return [
-			('#ifndef TARGET_API_MAC_CARBON', [
+			('#if !TARGET_API_MAC_CARBON', [
 				'RGetResource',
 				'OpenResFile',
 				'CreateResFile',