Skip to main content
Sign in
Snippets Groups Projects
Commit a474eaa3 authored by Michael Polyntsov's avatar Michael Polyntsov Committed by Jakob Olsson
Browse files

Define _XOPEN_SOURCE instead of __USE_XOPEN for strptime

According to man strptime page _XOPEN_SOURCE is the correct macro,
not __USE_XOPEN
parent f26c28f1
No related branches found
No related tags found
1 merge request!281fix bugs found during compilation with glibc
Pipeline #126733 passed
...@@ -7,12 +7,11 @@ ...@@ -7,12 +7,11 @@
* *
*/ */
#define _DEFAULT_SOURCE
#define _XOPEN_SOURCE
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <signal.h> #include <signal.h>
#ifndef __GLIBC__
#define __USE_XOPEN
#endif
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment