Skip to content

Commit

Permalink
core: unbreak on FreeBSD
Browse files Browse the repository at this point in the history
This is some old compat code which is unlikely to be needed and
has been just copy-pasted in b2f7ef7.
  • Loading branch information
sobomax committed Jan 6, 2025
1 parent 4619730 commit 28cd6be
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions transformations.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,6 @@
* \brief Support for transformations
*/

#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 28cd6be

Please sign in to comment.