Gitweb links:
...log
http://git.netsurf-browser.org/libnsfb.git/shortlog/21b66baa0cbffd72eb090ac32b082d90641805cd
...commit
http://git.netsurf-browser.org/libnsfb.git/commit/21b66baa0cbffd72eb090ac32b082d90641805cd
...tree
http://git.netsurf-browser.org/libnsfb.git/tree/21b66baa0cbffd72eb090ac32b082d90641805cd
The branch, master has been updated
via 21b66baa0cbffd72eb090ac32b082d90641805cd (commit)
from 79f19011072ed9223900d4cc4e4f87198c9fee29 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libnsfb.git/commit/?id=21b66baa0cbffd72eb090ac32b082d90641805cd
commit 21b66baa0cbffd72eb090ac32b082d90641805cd
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
fix compile on freebsd
diff --git a/src/plot.h b/src/plot.h
index 2fd2ebf..bab3007 100644
--- a/src/plot.h
+++ b/src/plot.h
@@ -35,6 +35,16 @@
#if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
#define NSFB_BE_BYTE_ORDER
#endif
+#elif defined(__FreeBSD__)
+ /* freebsd has the include somewhere different */
+ #include <machine/endian.h>
+ if defined(BYTE_ORDER)
+ #if BYTE_ORDER == BIG_ENDIAN
+ #define NSFB_BE_BYTE_ORDER
+ #endif
+ #else
+ #error "Endian determination failed"
+ #endif
#else
#include <endian.h>
#if defined(__BYTE_ORDER__)
-----------------------------------------------------------------------
Summary of changes:
src/plot.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/plot.h b/src/plot.h
index 2fd2ebf..bab3007 100644
--- a/src/plot.h
+++ b/src/plot.h
@@ -35,6 +35,16 @@
#if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
#define NSFB_BE_BYTE_ORDER
#endif
+#elif defined(__FreeBSD__)
+ /* freebsd has the include somewhere different */
+ #include <machine/endian.h>
+ if defined(BYTE_ORDER)
+ #if BYTE_ORDER == BIG_ENDIAN
+ #define NSFB_BE_BYTE_ORDER
+ #endif
+ #else
+ #error "Endian determination failed"
+ #endif
#else
#include <endian.h>
#if defined(__BYTE_ORDER__)
--
NetSurf Framebuffer library
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org