FreeBSD build support

This commit is contained in:
Zeex
2020-10-31 17:18:48 +06:00
parent 89f9730f2b
commit 8d0b8a8d57
2 changed files with 4 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ language: c
os:
- linux
- osx
- freebsd
env:
global:
- CTEST_OUTPUT_ON_FAILURE=ON
@@ -20,6 +21,7 @@ addons:
- yasm
before_install:
- if [ $TRAVIS_OS_NAME == osx ]; then brew install yasm; fi
- if [ $TRAVIS_OS_NAME == freebsd ]; then sudo pkg install -y yasm; fi
before_script:
- cmake . -DSUBHOOK_FORCE_32BIT=`([ $ARCH = x86 ] && echo 'ON') || echo 'OFF'`

View File

@@ -41,11 +41,8 @@
#if defined _WIN32 || defined __CYGWIN__
#define SUBHOOK_WINDOWS
#elif defined __linux__
#define SUBHOOK_LINUX
#define SUBHOOK_UNIX
#elif defined __APPLE__
#define SUBHOOK_MACOS
#elif defined __linux__ || defined __APPLE__ \
|| defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__
#define SUBHOOK_UNIX
#else
#error Unsupported operating system