ref: c61c11221859da2f7a7180d62cc1f9b4d8244a81
parent: 55974bc743c8f81e69e37a1a32bad2f316805d55
author: stag019 <[email protected]>
date: Mon Dec 23 09:57:06 EST 2013
Remove GNU-specific <getopt.h>. getopt() is defined in <unistd.h> in POSIX, which adding #define _XOPEN_SOURCE 500 causes GCC to include.
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -5,8 +5,8 @@
*
*/
+#define _XOPEN_SOURCE 500
#include <math.h>
-#include <getopt.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -14,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <getopt.h>
+#define _XOPEN_SOURCE 500
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
--- a/src/link/main.c
+++ b/src/link/main.c
@@ -1,4 +1,4 @@
-#include <getopt.h>
+#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <string.h>