Gitweb links:

...log 
http://git.netsurf-browser.org/libnsfb.git/shortlog/bce2c233988e86ad034f6e0c8b96385db0d47a2e
...commit 
http://git.netsurf-browser.org/libnsfb.git/commit/bce2c233988e86ad034f6e0c8b96385db0d47a2e
...tree 
http://git.netsurf-browser.org/libnsfb.git/tree/bce2c233988e86ad034f6e0c8b96385db0d47a2e

The branch, master has been updated
       via  bce2c233988e86ad034f6e0c8b96385db0d47a2e (commit)
      from  6fe884b805a97e4185703afb62de4da8bdf3edde (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=bce2c233988e86ad034f6e0c8b96385db0d47a2e
commit bce2c233988e86ad034f6e0c8b96385db0d47a2e
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    cope with mac os X having the endian header somewhere else

diff --git a/src/plot.h b/src/plot.h
index 6e67ca6..65ef264 100644
--- a/src/plot.h
+++ b/src/plot.h
@@ -29,7 +29,13 @@
     #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
         #define NSFB_BE_BYTE_ORDER
     #endif
-#else /* defined(_WIN32) */
+#elif defined(OS_MACOSX)
+/* mac os x has the include somewhere different */
+    #include <machine/endian.h>
+    #if BYTE_ORDER == BIG_ENDIAN
+        #define NSFB_BE_BYTE_ORDER
+    #endif
+#else
     #include <endian.h>
     #if defined(__BYTE_ORDER__)
         #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__


-----------------------------------------------------------------------

Summary of changes:
 src/plot.h |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/plot.h b/src/plot.h
index 6e67ca6..65ef264 100644
--- a/src/plot.h
+++ b/src/plot.h
@@ -29,7 +29,13 @@
     #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
         #define NSFB_BE_BYTE_ORDER
     #endif
-#else /* defined(_WIN32) */
+#elif defined(OS_MACOSX)
+/* mac os x has the include somewhere different */
+    #include <machine/endian.h>
+    #if BYTE_ORDER == BIG_ENDIAN
+        #define NSFB_BE_BYTE_ORDER
+    #endif
+#else
     #include <endian.h>
     #if defined(__BYTE_ORDER__)
         #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__


-- 
NetSurf Framebuffer library

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to