mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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:
parent
b7f7ac7f1a
commit
58db9f25b1
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user