summaryrefslogtreecommitdiff
path: root/src/generic/evas/xcf
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-02-01 11:04:17 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-02-01 14:25:35 +0000
commitf7c560c311d0ba0da94346e17c8b20f40a0ed152 (patch)
treeaf5f63aceb78ff1b153f3727f8adab6ee4e1d653 /src/generic/evas/xcf
parent36286a23fe97e3667c1106116d1edbc301c7a9ba (diff)
replace hton and ntoh family functions with ones defined in eina
Summary: This fixes especially the execution of edje_cc on Windows Test Plan: execution of edje_cc Reviewers: cedric, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7834
Diffstat (limited to '')
-rw-r--r--src/generic/evas/xcf/main.c7
-rw-r--r--src/generic/evas/xcf/meson.build4
2 files changed, 4 insertions, 7 deletions
diff --git a/src/generic/evas/xcf/main.c b/src/generic/evas/xcf/main.c
index c5ef6a82d6..65e5e1b5b3 100644
--- a/src/generic/evas/xcf/main.c
+++ b/src/generic/evas/xcf/main.c
@@ -45,14 +45,11 @@
45 Ok, hope this helps with understanding XCF. -- cK. 45 Ok, hope this helps with understanding XCF. -- cK.
46 46
47*/ 47*/
48#include <Eina.h>
48#include "common.h" 49#include "common.h"
49#include "shmfile.h" 50#include "shmfile.h"
50#include "timeout.h" 51#include "timeout.h"
51 52
52#ifdef _WIN32
53# include <winsock2.h> /* for ntohl() */
54#endif
55
56#define FREE(X) { free(X); X = NULL; } 53#define FREE(X) { free(X); X = NULL; }
57 54
58#define TILE_WIDTH 64 55#define TILE_WIDTH 64
@@ -479,7 +476,7 @@ xcf_read_int32(void *fp,
479 xcf_read_int8(fp, (DATA8*) data, count * 4); 476 xcf_read_int8(fp, (DATA8*) data, count * 4);
480 while (count--) 477 while (count--)
481 { 478 {
482 *data = (DATA32)ntohl(*data); 479 *data = (DATA32)eina_ntohl(*data);
483 data++; 480 data++;
484 } 481 }
485 } 482 }
diff --git a/src/generic/evas/xcf/meson.build b/src/generic/evas/xcf/meson.build
index 0f5fb208c5..169469b679 100644
--- a/src/generic/evas/xcf/meson.build
+++ b/src/generic/evas/xcf/meson.build
@@ -4,5 +4,5 @@ generic_src = files([
4 'pixelfuncs.c' 4 'pixelfuncs.c'
5]) 5])
6 6
7generic_deps = [dependency('zlib')] 7generic_deps = [eina, dependency('zlib')]
8generic_support = ['xcf.gz'] \ No newline at end of file 8generic_support = ['xcf.gz']