Added detection of FreeBSD in CSFML's config.h

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1229 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-10-03 18:36:19 +00:00
parent b7f7ac7f1a
commit 58db9f25b1
2 changed files with 6 additions and 1 deletions

View File

@ -44,6 +44,11 @@
// MacOS // MacOS
#define CSFML_SYSTEM_MACOS #define CSFML_SYSTEM_MACOS
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
// FreeBSD
#define CSFML_SYSTEM_FREEBSD
#else #else
// Unsupported system // Unsupported system

View File

@ -40,7 +40,7 @@
// Windows defines a void* handle (HWND) // Windows defines a void* handle (HWND)
typedef void* sfWindowHandle; typedef void* sfWindowHandle;
#elif defined(CSFML_SYSTEM_LINUX) #elif defined(CSFML_SYSTEM_LINUX) || defined(CSFML_SYSTEM_FREEBSD)
// Unix - X11 defines an unsigned integer handle (Window) // Unix - X11 defines an unsigned integer handle (Window)
typedef unsigned long sfWindowHandle; typedef unsigned long sfWindowHandle;