Commit 6fd62e6b authored by David Reid's avatar David Reid

Update fs.

parent b1893aa8
......@@ -4,12 +4,19 @@
#include "fs.h"
/* TODO: Remove this. To replicate errors, Just comment out this _XOPEN_SOURCE section and compile with `-std=c89` on GCC. */
/* This is for `-std=c89` compatibility. Without this there will be a few pthread related issues as well as some stdio functions being unavailable. They will need workarounds. */
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700
#else
#if _XOPEN_SOURCE < 500
#error _XOPEN_SOURCE must be >= 500. fs is not usable.
/*
This is for `-std=c89` compatibility. Without this there will be a few pthread related issues as well as some stdio
functions being unavailable. They will need workarounds.
Note that this causes errors on Apple platforms, so we exclude Apple from this.
*/
#ifndef __APPLE__
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700
#else
#if _XOPEN_SOURCE < 500
#error _XOPEN_SOURCE must be >= 500. fs is not usable.
#endif
#endif
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment