aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--example/ios/iOS UI Test/iOS UI Test/main.mm2
-rw-r--r--src/core/basetypes/MCLog.c3
-rw-r--r--src/core/basetypes/MCLog.h2
-rw-r--r--tests/test-all.mm2
4 files changed, 4 insertions, 5 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/main.mm b/example/ios/iOS UI Test/iOS UI Test/main.mm
index 0089973b..e6253102 100644
--- a/example/ios/iOS UI Test/iOS UI Test/main.mm
+++ b/example/ios/iOS UI Test/iOS UI Test/main.mm
@@ -12,6 +12,6 @@
#import <MailCore/MailCore.h>
int main(int argc, char *argv[]) {
- MCLogEnabled = true;
+ MCLogEnabled = 1;
return UIApplicationMain(argc, argv, nil, @"AppDelegate");
}
diff --git a/src/core/basetypes/MCLog.c b/src/core/basetypes/MCLog.c
index f3ce2318..8744f2dd 100644
--- a/src/core/basetypes/MCLog.c
+++ b/src/core/basetypes/MCLog.c
@@ -7,10 +7,9 @@
#include <sys/time.h>
#include <pthread.h>
#include <unistd.h>
-#include <stdbool.h>
static pid_t sPid = -1;
-bool MCLogEnabled = false;
+int MCLogEnabled = 0;
__attribute__((constructor))
static void initialize() {
diff --git a/src/core/basetypes/MCLog.h b/src/core/basetypes/MCLog.h
index f4e940e2..de75314f 100644
--- a/src/core/basetypes/MCLog.h
+++ b/src/core/basetypes/MCLog.h
@@ -10,7 +10,7 @@
namespace mailcore {
- extern bool MCLogEnabled;
+ extern int MCLogEnabled;
#ifndef __printflike
#define __printflike(a,b)
diff --git a/tests/test-all.mm b/tests/test-all.mm
index 4155bbb2..fdb0888c 100644
--- a/tests/test-all.mm
+++ b/tests/test-all.mm
@@ -351,7 +351,7 @@ void testAll()
displayName = MCSTR("My Email");
mailcore::AutoreleasePool * pool = new mailcore::AutoreleasePool();
- MCLogEnabled = true;
+ MCLogEnabled = 1;
mailstream_debug = 1;
//mailcore::Data * data = testMessageBuilder();