aboutsummaryrefslogtreecommitdiffstats
path: root/src/switches.inc
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-10 06:24:16 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-10 06:24:16 +0000
commit8dc13b99b51555be6fa16d271ddb02d995b46d96 (patch)
tree83fb595c0ed16c5ffebcfa865eb3112322e66cdd /src/switches.inc
parentd6554ccc1ec223c52f33ff034491e64ac1fa92aa (diff)
downloadusdx-8dc13b99b51555be6fa16d271ddb02d995b46d96.tar.gz
usdx-8dc13b99b51555be6fa16d271ddb02d995b46d96.tar.xz
usdx-8dc13b99b51555be6fa16d271ddb02d995b46d96.zip
FreeBSD compatibility fixes:
- {$IF Defined(Linux)} -> {$IF Defined(Linux) or Defined(BSD)} or {$IF Defined(UNIX)} - config-freebsd.inc added git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1357 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/switches.inc')
-rw-r--r--src/switches.inc22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/switches.inc b/src/switches.inc
index 940087f3..6504ea55 100644
--- a/src/switches.inc
+++ b/src/switches.inc
@@ -39,15 +39,6 @@
{$DEFINE HaveBASS}
{$UNDEF UseSerialPort}
{$DEFINE UseMIDIPort}
-{$ELSEIF Defined(LINUX)}
- // include defines but no constants
- {$I config-linux.inc}
-
- // use "configure --enable-debug", "make debug" or
- // the command-line parameter "-debug" instead of defining DEBUG directly
- {.$DEFINE DEBUG}
- // linux apps are always console-apps so leave this defined.
- {$DEFINE CONSOLE}
{$ELSEIF Defined(DARWIN)}
// include defines but no constants
{$I config-darwin.inc}
@@ -57,6 +48,19 @@
{$DEFINE CONSOLE}
{.$DEFINE HaveBASS}
{$DEFINE UTF8_FILENAMES}
+{$ELSEIF Defined(UNIX)}
+ // include defines but no constants
+ {$IF Defined(FREEBSD)}
+ {$I config-freebsd.inc}
+ {$ELSEIF Defined(Linux)}
+ {$I config-linux.inc}
+ {$IFEND}
+
+ // use "configure --enable-debug", "make debug" or
+ // the command-line parameter "-debug" instead of defining DEBUG directly
+ {.$DEFINE DEBUG}
+ // linux apps are always console-apps so leave this defined.
+ {$DEFINE CONSOLE}
{$IFEND}
// audio config