]> git.saurik.com Git - veency.git/commitdiff
Use -fvisibility-hidden for safer hidden symbols.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 2 Feb 2013 12:43:23 +0000 (12:43 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 2 Feb 2013 12:43:23 +0000 (12:43 +0000)
Tweak.mm
makefile

index 9c1ae76751fd8abcc8261f53cdc16fed305a560c..62654ad2ce2ebf17790e806e1fd3514c1e35b84d 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -295,6 +295,14 @@ static rfbBool VNCCheck(rfbClientPtr client, const char *data, int size) {
 
 static bool iPad1_;
 
+struct VeencyEvent {
+    struct GSEventRecord record;
+    struct {
+        struct GSEventRecordInfo info;
+        struct GSPathInfo path;
+    } data;
+};
+
 static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) {
     if (ratio_ == 0)
         return;
@@ -376,13 +384,7 @@ static void VNCPointer(int buttons, int x, int y, rfbClientPtr client) {
     }
 
     if (twas != tis || tis) {
-        struct {
-            struct GSEventRecord record;
-            struct {
-                struct GSEventRecordInfo info;
-                struct GSPathInfo path;
-            } data;
-        } event;
+        struct VeencyEvent event;
 
         memset(&event, 0, sizeof(event));
 
index 5568d0d945fa836e4a22d99cb510522502e5259a..2c3d88ba9b6b9705cbd9e040ca1ddfc275a85ba3 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,6 +1,7 @@
 name := Veency
 id := vncs
 flags := -lvncserver -framework IOMobileFramebuffer -framework CoreSurface -framework IOKit -framework GraphicsServices -I/apl/inc/iPhoneOS-2.0 -framework QuartzCore -weak_reference_mismatches weak -framework UIKit -framework GraphicsServices
+flags += -fvisibility=hidden
 base := ../tweaks
 include ../tweaks/tweak.mk