]> git.saurik.com Git - cycript.git/blobdiff - Console.cpp
Further makefile reorganization, header file fixes, code movement, and general massag...
[cycript.git] / Console.cpp
index dfc5c8c497dec9ec719c2ad0b98958e4b4a0d50c..503a3e8c811fd80ab11291c4232e812d6d3dc469 100644 (file)
@@ -37,8 +37,6 @@
 */
 /* }}} */
 
-#define _GNU_SOURCE
-
 #include "cycript.hpp"
 
 #include <cstdio>
@@ -419,8 +417,10 @@ int main(int argc, char *argv[]) {
     if (optind == argc)
         script = NULL;
     else {
+#ifdef CY_EXECUTE
         // XXX: const_cast?! wtf gcc :(
         CYSetArgs(argc - optind - 1, const_cast<const char **>(argv + optind + 1));
+#endif
         script = argv[optind];
         if (strcmp(script, "-") == 0)
             script = NULL;