]> git.saurik.com Git - wxWidgets.git/commitdiff
wxUSE_GUI == 0 compilation fix (patch 1501724)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Jul 2006 17:13:38 +0000 (17:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Jul 2006 17:13:38 +0000 (17:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/corefoundation/utilsexc_cf.cpp

index 5eadfff5706dff5dc58c01d905d325417daeebc7..a8db1a3c853bc146d887700b8d02659b7ac86b29 100644 (file)
@@ -91,7 +91,7 @@ void* wxProcessTerminationThread::Entry()
             break;
         }
     }
-    
+
     return NULL;
 }
 
@@ -100,9 +100,9 @@ int wxAddProcessCallbackForPid(wxEndProcessData *proc_data, int pid)
     if (pid < 1)
         return -1;
 
-    wxProcessTerminationEventHandler* handler = new wxProcessTerminationEventHandler(proc_data);    
+    wxProcessTerminationEventHandler* handler = new wxProcessTerminationEventHandler(proc_data);
     wxProcessTerminationThread* thread = new wxProcessTerminationThread(proc_data, handler);
-    
+
     if (thread->Create() != wxTHREAD_NO_ERROR)
     {
         wxLogDebug(wxT("Could not create termination detection thread."));
@@ -112,7 +112,7 @@ int wxAddProcessCallbackForPid(wxEndProcessData *proc_data, int pid)
     }
 
     thread->Run();
-    
+
     return 0;
 }
 
@@ -201,7 +201,7 @@ int wxAddProcessCallbackForPid(wxEndProcessData *proc_data, int pid)
         wxLogDebug(wxT("Couldn't create runloopsource"));
         return -1;
     }
-    
+
     CFRelease(CFMachPortForProcess);
 
     CFRunLoopAddSource(CFRunLoopGetCurrent(),runloopsource,kCFRunLoopDefaultMode);
@@ -210,14 +210,17 @@ int wxAddProcessCallbackForPid(wxEndProcessData *proc_data, int pid)
     return 0;
 }
 
-#endif
-  // USE_POLLING
+#endif // USE_POLLING
 
-// NOTE: This doens't really belong here but this was a handy file to
+// NOTE: This doesn't really belong here but this was a handy file to
 // put it in because it's already compiled for wxCocoa and wxMac GUI lib.
+#if wxUSE_GUI
+
 static wxStandardPathsCF gs_stdPaths;
 wxStandardPathsBase& wxGUIAppTraits::GetStandardPaths()
 {
     return gs_stdPaths;
 }
 
+#endif // wxUSE_GUI
+