]> git.saurik.com Git - uikittools.git/commitdiff
Add cfversion.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jun 2011 19:32:15 +0000 (19:32 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jun 2011 19:32:15 +0000 (19:32 +0000)
.gitignore
cfversion.mm [new file with mode: 0644]
makefile

index 0d6822e231b8b3361582a8de429dd3ff4c951b3b..3d624b42364deafe05483424d137352f6eadcca8 100644 (file)
@@ -1,5 +1,6 @@
 *.deb
 _
+cfversion
 debs
 gssc
 sbdidlaunch
diff --git a/cfversion.mm b/cfversion.mm
new file mode 100644 (file)
index 0000000..6be6c71
--- /dev/null
@@ -0,0 +1,7 @@
+#include <CoreFoundation/CoreFoundation.h>
+#include <cstdio>
+
+int main() {
+    printf("%.2f\n", kCFCoreFoundationVersionNumber);
+    return 0;
+}
index a9807b63a50ff256ce9b76d306673689674a6e08..6d3851986291104f856219ce4a5750ec45c6cb2b 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-uikittools = uiduid uishoot uicache uiopen gssc sbdidlaunch sbreload
+uikittools = uiduid uishoot uicache uiopen gssc sbdidlaunch sbreload cfversion
 
 all: $(uikittools)