Skip to content

Commit

Permalink
Undo solaris-bs that breaks things on BSDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jun 16, 2024
1 parent b51f8c3 commit 1d5eb00
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions transformations.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,10 @@
* \brief Support for transformations
*/

/* make strptime available */
#define _GNU_SOURCE
#define _XOPEN_SOURCE 600 /* glibc2 on linux, bsd */
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */

/**
* _XOPEN_SOURCE creates conflict in swab definition in Solaris
*/
#ifdef __OS_solaris
#undef _XOPEN_SOURCE
#endif

#include <time.h>

#undef _XOPEN_SOURCE
#undef _XOPEN_SOURCE_EXTENDED

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Expand Down

0 comments on commit 1d5eb00

Please sign in to comment.