From 578822ebe31957f5c5381b6c70f22c4bf833206d Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Mon, 22 Nov 2010 14:00:17 +0000 Subject: [Author: thomasvl] Ensure main() always exists to avoid link errors. TBR=dmaclach DELTA=5 (2 added, 3 deleted, 0 changed) --- Foundation/GTMServiceManagementTestingHarness.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Foundation/GTMServiceManagementTestingHarness.c') 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 -- cgit v1.2.3