diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-06-29 21:17:39 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-06-29 21:17:39 -0600 |
commit | 1874938c0d35990f95e494a7fef066bf97001d8f (patch) | |
tree | b6c43254129237843d07f7cbf13572397e6973f6 /libdimension/png.c | |
parent | eb4691098767935c1ffd10f7da46796c11eefcfa (diff) | |
download | dimension-1874938c0d35990f95e494a7fef066bf97001d8f.tar.xz |
Move platform-specific stuff in libdimension into platform.c.
Diffstat (limited to 'libdimension/png.c')
-rw-r--r-- | libdimension/png.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libdimension/png.c b/libdimension/png.c index 9bece58..7c21475 100644 --- a/libdimension/png.c +++ b/libdimension/png.c @@ -21,7 +21,6 @@ #include "dimension_impl.h" #include <pthread.h> #include <png.h> -#include <arpa/inet.h> #include <errno.h> #include <setjmp.h> #include <stdlib.h> @@ -245,7 +244,7 @@ dmnsn_png_write_canvas_thread(void *ptr) /* Write the info struct */ png_write_info(png_ptr, info_ptr); - if (htonl(1) != 1) { + if (dmnsn_is_little_endian()) { /* We are little-endian; swap the byte order of the pixels */ png_set_swap(png_ptr); } |