Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make UKSystemInfo usable from ObjC++.

  • Loading branch information...
commit 21c783d2fde2b970ede7601725d7c6f3fddfb450 1 parent 6c28639
@uliwitness authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 UKSystemInfo.h
View
9 UKSystemInfo.h
@@ -27,6 +27,10 @@
#import <Foundation/Foundation.h>
+#if __cplusplus
+extern "C" {
+#endif
+
unsigned UKPhysicalRAMSize(void); // RAM Size in MBs.
NSString* UKSystemVersionString(void); // System version as a string MM.m.b
@@ -41,3 +45,8 @@ void UKGetSystemVersionComponents( SInt32* outMajor, SInt32* outMinor, SInt32*
// Don't use the following for new code:
// (Since the number is in BCD, the maximum for minor and bugfix revisions is 9, so this returns 1049 for 10.4.10)
long UKSystemVersion(void); // System version as BCD number, I.e. 0xMMmb
+
+#if __cplusplus
+}
+#endif
+
Please sign in to comment.
Something went wrong with that request. Please try again.