Enable compilation for PowerPC and x86_64. master
authorJoshua Wise <joshua@escape.joshuawise.com>
Sat, 20 Mar 2010 00:02:22 +0000 (20:02 -0400)
committerJoshua Wise <joshua@escape.joshuawise.com>
Sat, 20 Mar 2010 00:02:22 +0000 (20:02 -0400)
Ambien.cpp
Ambien.xcodeproj/project.pbxproj

index f6d7710..f81c5c1 100644 (file)
@@ -109,7 +109,7 @@ IOWorkLoop* Ambien::getWorkLoop()
 
 IOReturn Ambien::message(UInt32 type, IOService *provider, void *arg)
 {
-       unsigned int argi = (unsigned int)arg;
+       unsigned int argi = (unsigned int)(unsigned long)/* screw off, it's a bitmask, not a pointer */arg;
        
        if (type == kIOPMMessageClamshellStateChange)
        {
index cbce367..dc48e86 100644 (file)
                42E2EB52100450B500EC9679 /* Development */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
+                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
+                               ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
                        };
                        name = Development;
                };
                42E2EB53100450B500EC9679 /* Deployment */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
+                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
+                               ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
                        };
                        name = Deployment;
                };
                42E2EB54100450B500EC9679 /* Default */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
+                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
+                               ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
                        };
                        name = Default;
                };
                42E2EB761004514E00EC9679 /* Development */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
+                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
+                               ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
                                COPY_PHASE_STRIP = NO;
                                FRAMEWORK_SEARCH_PATHS = "";
                                GCC_DYNAMIC_NO_PIC = NO;
                                OTHER_LDFLAGS = "";
                                OTHER_REZFLAGS = "";
                                PRODUCT_NAME = Ambien;
+                               SDKROOT = "";
                                SECTORDER_FLAGS = "";
                                WARNING_CFLAGS = (
                                        "-Wmost",
                42E2EB771004514E00EC9679 /* Deployment */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
+                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
+                               ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
                                COPY_PHASE_STRIP = YES;
                                FRAMEWORK_SEARCH_PATHS = "";
                                GCC_ENABLE_FIX_AND_CONTINUE = NO;
                                OTHER_LDFLAGS = "";
                                OTHER_REZFLAGS = "";
                                PRODUCT_NAME = Insomnia;
+                               SDKROOT = "";
                                SECTORDER_FLAGS = "";
                                WARNING_CFLAGS = (
                                        "-Wmost",
                42E2EB781004514E00EC9679 /* Default */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
+                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
+                               ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
                                FRAMEWORK_SEARCH_PATHS = "";
                                GCC_SYMBOLS_PRIVATE_EXTERN = NO;
                                HEADER_SEARCH_PATHS = "";
                                OTHER_LDFLAGS = "";
                                OTHER_REZFLAGS = "";
                                PRODUCT_NAME = Insomnia;
+                               SDKROOT = "";
                                SECTORDER_FLAGS = "";
                                WARNING_CFLAGS = (
                                        "-Wmost",
This page took 0.022565 seconds and 4 git commands to generate.