aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMServiceManagementTestingHarness.c
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2010-11-22 14:00:17 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2010-11-22 14:00:17 +0000
commit578822ebe31957f5c5381b6c70f22c4bf833206d (patch)
treed0558c2563d24d8d764ae5206ba4277a2f3bff37 /Foundation/GTMServiceManagementTestingHarness.c
parentfe12d97378d57bb195aebdc4f5a5d4d7b8519563 (diff)
[Author: thomasvl]
Ensure main() always exists to avoid link errors. TBR=dmaclach DELTA=5 (2 added, 3 deleted, 0 changed)
Diffstat (limited to 'Foundation/GTMServiceManagementTestingHarness.c')
-rw-r--r--Foundation/GTMServiceManagementTestingHarness.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Foundation/GTMServiceManagementTestingHarness.c b/Foundation/GTMServiceManagementTestingHarness.c
index dadff13..2b99758 100644
--- a/Foundation/GTMServiceManagementTestingHarness.c
+++ b/Foundation/GTMServiceManagementTestingHarness.c
@@ -18,14 +18,13 @@
#include "GTMServiceManagement.h"
-#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
-
int main(int argc, const char** argv) {
+#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
CFErrorRef error = NULL;
CFDictionaryRef dict = GTMSMJobCheckIn(&error);
if (!dict) {
CFShow(error);
}
+#endif // if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
return 0;
}
-#endif // if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4