Remove GNU-specific <getopt.h>. getopt() is defined in <unistd.h> in POSIX, which adding #define _XOPEN_SOURCE 500 causes GCC to include.

This commit is contained in:
stag019
2013-12-23 14:57:06 -05:00
parent 55974bc743
commit c61c112218
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5,8 +5,8 @@
*
*/
#define _XOPEN_SOURCE 500
#include <math.h>
#include <getopt.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -1,4 +1,4 @@
#include <getopt.h>
#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <string.h>