Skip to content
Browse files

LibComponentLogging-SystemLog-1.1.4

  • Loading branch information...
2 parents 03b0fe3 + 6acfb0c commit 03df86017da5d435082ff1b023d43f66cae602af @aharren committed
Showing with 15 additions and 2 deletions.
  1. +9 −2 LCLSystemLog.h
  2. +6 −0 LCLSystemLog.m
View
11 LCLSystemLog.h
@@ -25,7 +25,7 @@
#define _LCLSYSTEMLOG_VERSION_MAJOR 1
#define _LCLSYSTEMLOG_VERSION_MINOR 1
-#define _LCLSYSTEMLOG_VERSION_BUILD 3
+#define _LCLSYSTEMLOG_VERSION_BUILD 4
#define _LCLSYSTEMLOG_VERSION_SUFFIX ""
@@ -193,7 +193,14 @@
// ARC/non-ARC autorelease pool
-#if __has_feature(objc_arc)
+#define _lcl_logger_autoreleasepool_arc 0
+#if defined(__has_feature)
+# if __has_feature(objc_arc)
+# undef _lcl_logger_autoreleasepool_arc
+# define _lcl_logger_autoreleasepool_arc 1
+# endif
+#endif
+#if _lcl_logger_autoreleasepool_arc
#define _lcl_logger_autoreleasepool_begin \
@autoreleasepool {
#define _lcl_logger_autoreleasepool_end \
View
6 LCLSystemLog.m
@@ -143,6 +143,12 @@
};
+// __has_feature for non-clang compilers
+#if !defined(__has_feature)
+#define __has_feature(_feature) 0
+#endif
+
+
// ARC/non-ARC autorelease pool
#if __has_feature(objc_arc)
#define _LCLSystemLog_autoreleasepool_begin \

0 comments on commit 03df860

Please sign in to comment.
Something went wrong with that request. Please try again.