summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-08-10 11:20:29 +0200
committerLars-Dominik Braun <lars@6xq.net>2015-08-10 11:20:29 +0200
commitbfe0583a1264e2b1467942ec33e1fa773d450d9b (patch)
treeaa7347636eddb765fec8c8b7af11456f7ce209c2 /src/main.c
parent3a196f51581ffca2d2a902e83a9b69ac4702316c (diff)
downloadpianobar-windows-bfe0583a1264e2b1467942ec33e1fa773d450d9b.tar.gz
pianobar-windows-bfe0583a1264e2b1467942ec33e1fa773d450d9b.tar.bz2
pianobar-windows-bfe0583a1264e2b1467942ec33e1fa773d450d9b.zip
Move feature test macros to config.h
I removed most of the *BSD-related stuff, because I can’t test these. If this breaks your build, send me a patch please.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 59230e0..b113f4e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,11 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-#ifndef __FreeBSD__
-#define _POSIX_C_SOURCE 1 /* fileno() */
-#define _BSD_SOURCE /* strdup() */
-#define _DARWIN_C_SOURCE /* strdup() on OS X */
-#endif
+#include "config.h"
/* system includes */
#include <stdlib.h>
@@ -56,7 +52,6 @@ THE SOFTWARE.
#include "main.h"
#include "terminal.h"
-#include "config.h"
#include "ui.h"
#include "ui_dispatch.h"
#include "ui_readline.h"