Skip to content

Commit 1fffb1f

Browse files
committed
Proper way of including endian.h for FreeBSD
1 parent 9345b07 commit 1fffb1f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@
3030

3131
#include <sys/time.h>
3232

33-
#ifndef WIN32
34-
#include <endian.h>
35-
#else
33+
#if defined(WIN32)
3634
typedef unsigned int uint;
3735
#include <windows.h>
3836
#include <GL/glext.h>
37+
#elif defined(__FreeBSD__)
38+
#include <sys/endian.h>
39+
#else
40+
#include <endian.h>
3941
#endif
4042

4143

0 commit comments

Comments
 (0)