From 3d2848be9dcd20c8a5c7c44b899c359c1ec7a49a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 2 Feb 2013 12:43:23 +0000 Subject: [PATCH] Use -fvisibility-hidden for safer hidden symbols. --- Tweak.mm | 16 +++++++++------- makefile | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Tweak.mm b/Tweak.mm index 9c1ae76..62654ad 100644 --- 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)); diff --git a/makefile b/makefile index 5568d0d..2c3d88b 100644 --- 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 -- 2.47.2