diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2018-01-03 06:23:10 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2018-01-04 12:59:47 -0800 |
commit | 4ae6eeb2cffa68336beedaeacf8874c93f15feda (patch) | |
tree | 9c212d00728a35922c468725a382cd6c0fb40d63 | |
parent | 6c42801bac1343629ded606e6960bb656ec86ff8 (diff) |
efl: remove _MSC_VER (Visual Studio macro) usage in source code
-rw-r--r-- | src/bin/embryo/embryo_cc_amx.h | 4 | ||||
-rw-r--r-- | src/bin/embryo/embryo_cc_sc.h | 8 | ||||
-rw-r--r-- | src/bin/embryo/embryo_cc_sc7.c | 9 | ||||
-rw-r--r-- | src/lib/ecore/ecore_app.c | 4 | ||||
-rw-r--r-- | src/lib/ecore/ecore_main.c | 14 | ||||
-rw-r--r-- | src/lib/ecore/ecore_pipe.c | 12 | ||||
-rw-r--r-- | src/lib/ecore_drm/Ecore_Drm.h | 24 | ||||
-rw-r--r-- | src/lib/ecore_drm2/Ecore_Drm2.h | 24 | ||||
-rw-r--r-- | src/lib/ecore_evas/ecore_evas.c | 5 | ||||
-rw-r--r-- | src/lib/ecore_ipc/ecore_ipc_private.h | 2 | ||||
-rw-r--r-- | src/lib/ecore_x/Ecore_X.h | 24 | ||||
-rw-r--r-- | src/lib/edje/edje_module.c | 2 | ||||
-rw-r--r-- | src/lib/eina/eina_hash.c | 6 | ||||
-rw-r--r-- | src/lib/embryo/embryo_private.h | 4 | ||||
-rw-r--r-- | src/lib/embryo/embryo_time.c | 4 | ||||
-rw-r--r-- | src/lib/evas/canvas/evas_async_events.c | 4 | ||||
-rw-r--r-- | src/lib/evas/canvas/evas_font_dir.c | 6 | ||||
-rw-r--r-- | src/lib/evas/file/evas_module.c | 2 | ||||
-rw-r--r-- | src/lib/evas/file/evas_path.c | 6 | ||||
-rw-r--r-- | src/lib/evas/include/evas_common_private.h | 5 |
20 files changed, 43 insertions, 126 deletions
diff --git a/src/bin/embryo/embryo_cc_amx.h b/src/bin/embryo/embryo_cc_amx.h index 5a00e525f8..d93861a465 100644 --- a/src/bin/embryo/embryo_cc_amx.h +++ b/src/bin/embryo/embryo_cc_amx.h | |||
@@ -66,7 +66,7 @@ | |||
66 | #define sEXPMAX 19 /* maximum name length for file version <= 6 */ | 66 | #define sEXPMAX 19 /* maximum name length for file version <= 6 */ |
67 | #define sNAMEMAX 31 /* maximum name length of symbol name */ | 67 | #define sNAMEMAX 31 /* maximum name length of symbol name */ |
68 | 68 | ||
69 | #if defined (_MSC_VER) || (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) | 69 | #if (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) |
70 | # pragma pack(1) | 70 | # pragma pack(1) |
71 | # define EMBRYO_STRUCT_PACKED | 71 | # define EMBRYO_STRUCT_PACKED |
72 | #elif defined (__GNUC__) || (defined (__SUNPRO_C) && __SUNPRO_C >= 0x5100) | 72 | #elif defined (__GNUC__) || (defined (__SUNPRO_C) && __SUNPRO_C >= 0x5100) |
@@ -142,7 +142,7 @@ | |||
142 | int nametable ; /* name table, file version 7 only */ | 142 | int nametable ; /* name table, file version 7 only */ |
143 | } EMBRYO_STRUCT_PACKED AMX_HEADER; | 143 | } EMBRYO_STRUCT_PACKED AMX_HEADER; |
144 | 144 | ||
145 | #if defined _MSC_VER || (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) | 145 | #if (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) |
146 | # pragma pack() | 146 | # pragma pack() |
147 | #endif | 147 | #endif |
148 | 148 | ||
diff --git a/src/bin/embryo/embryo_cc_sc.h b/src/bin/embryo/embryo_cc_sc.h index 965e580942..d088d0cd3b 100644 --- a/src/bin/embryo/embryo_cc_sc.h +++ b/src/bin/embryo/embryo_cc_sc.h | |||
@@ -35,13 +35,7 @@ | |||
35 | #include <stdarg.h> | 35 | #include <stdarg.h> |
36 | #include <stdio.h> | 36 | #include <stdio.h> |
37 | #include <setjmp.h> | 37 | #include <setjmp.h> |
38 | 38 | #include <stdint.h> | |
39 | #ifndef _MSC_VER | ||
40 | # include <stdint.h> | ||
41 | #else | ||
42 | # include <stddef.h> | ||
43 | # include <Evil.h> | ||
44 | #endif | ||
45 | 39 | ||
46 | #include "embryo_cc_amx.h" | 40 | #include "embryo_cc_amx.h" |
47 | 41 | ||
diff --git a/src/bin/embryo/embryo_cc_sc7.c b/src/bin/embryo/embryo_cc_sc7.c index db4fa69fba..7aad7b01c4 100644 --- a/src/bin/embryo/embryo_cc_sc7.c +++ b/src/bin/embryo/embryo_cc_sc7.c | |||
@@ -51,17 +51,8 @@ | |||
51 | 51 | ||
52 | #include "embryo_cc_sc.h" | 52 | #include "embryo_cc_sc.h" |
53 | 53 | ||
54 | #if defined _MSC_VER | ||
55 | #pragma warning(push) | ||
56 | #pragma warning(disable:4125) /* decimal digit terminates octal escape sequence */ | ||
57 | #endif | ||
58 | |||
59 | #include "embryo_cc_sc7.scp" | 54 | #include "embryo_cc_sc7.scp" |
60 | 55 | ||
61 | #if defined _MSC_VER | ||
62 | #pragma warning(pop) | ||
63 | #endif | ||
64 | |||
65 | static void stgstring(char *start, char *end); | 56 | static void stgstring(char *start, char *end); |
66 | static void stgopt(char *start, char *end); | 57 | static void stgopt(char *start, char *end); |
67 | 58 | ||
diff --git a/src/lib/ecore/ecore_app.c b/src/lib/ecore/ecore_app.c index ec420c6154..006948d46c 100644 --- a/src/lib/ecore/ecore_app.c +++ b/src/lib/ecore/ecore_app.c | |||
@@ -5,10 +5,6 @@ | |||
5 | #include <stdlib.h> | 5 | #include <stdlib.h> |
6 | #include <unistd.h> | 6 | #include <unistd.h> |
7 | 7 | ||
8 | #ifdef _MSC_VER | ||
9 | # include <process.h> | ||
10 | #endif | ||
11 | |||
12 | #ifdef _WIN32 | 8 | #ifdef _WIN32 |
13 | # include <Evil.h> | 9 | # include <Evil.h> |
14 | #endif | 10 | #endif |
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 4c4c81772a..634e87d3f3 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c | |||
@@ -28,26 +28,16 @@ | |||
28 | # include <ieeefp.h> // for Solaris | 28 | # include <ieeefp.h> // for Solaris |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | #ifdef _MSC_VER | ||
32 | # include <float.h> | ||
33 | #endif | ||
34 | |||
35 | #ifdef HAVE_ISFINITE | 31 | #ifdef HAVE_ISFINITE |
36 | # define ECORE_FINITE(t) isfinite(t) | 32 | # define ECORE_FINITE(t) isfinite(t) |
37 | #else | 33 | #else |
38 | # ifdef _MSC_VER | 34 | # define ECORE_FINITE(t) finite(t) |
39 | # define ECORE_FINITE(t) _finite(t) | ||
40 | # else | ||
41 | # define ECORE_FINITE(t) finite(t) | ||
42 | # endif | ||
43 | #endif | 35 | #endif |
44 | 36 | ||
45 | //#define FIX_HZ 1 | 37 | //#define FIX_HZ 1 |
46 | 38 | ||
47 | #ifdef FIX_HZ | 39 | #ifdef FIX_HZ |
48 | # ifndef _MSC_VER | 40 | # include <sys/param.h> |
49 | # include <sys/param.h> | ||
50 | # endif | ||
51 | # ifndef HZ | 41 | # ifndef HZ |
52 | # define HZ 100 | 42 | # define HZ 100 |
53 | # endif | 43 | # endif |
diff --git a/src/lib/ecore/ecore_pipe.c b/src/lib/ecore/ecore_pipe.c index c8fbb87ae4..f26f6bd25d 100644 --- a/src/lib/ecore/ecore_pipe.c +++ b/src/lib/ecore/ecore_pipe.c | |||
@@ -12,21 +12,15 @@ | |||
12 | #endif | 12 | #endif |
13 | 13 | ||
14 | #ifdef HAVE_ISFINITE | 14 | #ifdef HAVE_ISFINITE |
15 | # define ECORE_FINITE(t) isfinite(t) | 15 | # define ECORE_FINITE(t) isfinite(t) |
16 | #else | 16 | #else |
17 | # ifdef _MSC_VER | 17 | # define ECORE_FINITE(t) finite(t) |
18 | # define ECORE_FINITE(t) _finite(t) | ||
19 | # else | ||
20 | # define ECORE_FINITE(t) finite(t) | ||
21 | # endif | ||
22 | #endif | 18 | #endif |
23 | 19 | ||
24 | #define FIX_HZ 1 | 20 | #define FIX_HZ 1 |
25 | 21 | ||
26 | #ifdef FIX_HZ | 22 | #ifdef FIX_HZ |
27 | # ifndef _MSC_VER | 23 | # include <sys/param.h> |
28 | # include <sys/param.h> | ||
29 | # endif | ||
30 | # ifndef HZ | 24 | # ifndef HZ |
31 | # define HZ 100 | 25 | # define HZ 100 |
32 | # endif | 26 | # endif |
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h index c70e04eabb..ad60ca37c9 100644 --- a/src/lib/ecore_drm/Ecore_Drm.h +++ b/src/lib/ecore_drm/Ecore_Drm.h | |||
@@ -12,23 +12,15 @@ | |||
12 | # undef EAPI | 12 | # undef EAPI |
13 | # endif | 13 | # endif |
14 | 14 | ||
15 | # ifdef _MSC_VER | 15 | # ifdef __GNUC__ |
16 | # ifdef BUILDING_DLL | 16 | # if __GNUC__ >= 4 |
17 | # define EAPI __declspec(dllexport) | 17 | # define EAPI __attribute__ ((visibility("default"))) |
18 | # else // ifdef BUILDING_DLL | 18 | # else // if __GNUC__ >= 4 |
19 | # define EAPI __declspec(dllimport) | ||
20 | # endif // ifdef BUILDING_DLL | ||
21 | # else // ifdef _MSC_VER | ||
22 | # ifdef __GNUC__ | ||
23 | # if __GNUC__ >= 4 | ||
24 | # define EAPI __attribute__ ((visibility("default"))) | ||
25 | # else // if __GNUC__ >= 4 | ||
26 | # define EAPI | ||
27 | # endif // if __GNUC__ >= 4 | ||
28 | # else // ifdef __GNUC__ | ||
29 | # define EAPI | 19 | # define EAPI |
30 | # endif // ifdef __GNUC__ | 20 | # endif // if __GNUC__ >= 4 |
31 | # endif // ifdef _MSC_VER | 21 | # else // ifdef __GNUC__ |
22 | # define EAPI | ||
23 | # endif // ifdef __GNUC__ | ||
32 | 24 | ||
33 | # warning The Ecore_Drm library has been deprecated. Please use the Ecore_Drm2 library | 25 | # warning The Ecore_Drm library has been deprecated. Please use the Ecore_Drm2 library |
34 | 26 | ||
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h index 19f00cf929..bede4e5406 100644 --- a/src/lib/ecore_drm2/Ecore_Drm2.h +++ b/src/lib/ecore_drm2/Ecore_Drm2.h | |||
@@ -7,23 +7,15 @@ | |||
7 | # undef EAPI | 7 | # undef EAPI |
8 | # endif | 8 | # endif |
9 | 9 | ||
10 | # ifdef _MSC_VER | 10 | # ifdef __GNUC__ |
11 | # ifdef BUILDING_DLL | 11 | # if __GNUC__ >= 4 |
12 | # define EAPI __declspec(dllexport) | 12 | # define EAPI __attribute__ ((visibility("default"))) |
13 | # else // ifdef BUILDING_DLL | 13 | # else // if __GNUC__ >= 4 |
14 | # define EAPI __declspec(dllimport) | ||
15 | # endif // ifdef BUILDING_DLL | ||
16 | # else // ifdef _MSC_VER | ||
17 | # ifdef __GNUC__ | ||
18 | # if __GNUC__ >= 4 | ||
19 | # define EAPI __attribute__ ((visibility("default"))) | ||
20 | # else // if __GNUC__ >= 4 | ||
21 | # define EAPI | ||
22 | # endif // if __GNUC__ >= 4 | ||
23 | # else // ifdef __GNUC__ | ||
24 | # define EAPI | 14 | # define EAPI |
25 | # endif // ifdef __GNUC__ | 15 | # endif // if __GNUC__ >= 4 |
26 | # endif // ifdef _MSC_VER | 16 | # else // ifdef __GNUC__ |
17 | # define EAPI | ||
18 | # endif // ifdef __GNUC__ | ||
27 | 19 | ||
28 | # ifdef EFL_BETA_API_SUPPORT | 20 | # ifdef EFL_BETA_API_SUPPORT |
29 | 21 | ||
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index baeb5f1db9..4c3b13f0e4 100644 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c | |||
@@ -11,10 +11,7 @@ | |||
11 | #include <errno.h> | 11 | #include <errno.h> |
12 | #include <sys/stat.h> | 12 | #include <sys/stat.h> |
13 | #include <fcntl.h> | 13 | #include <fcntl.h> |
14 | 14 | #include <unistd.h> | |
15 | #ifndef _MSC_VER | ||
16 | # include <unistd.h> | ||
17 | #endif | ||
18 | 15 | ||
19 | #if defined(HAVE_SYS_MMAN_H) || defined(_WIN32) | 16 | #if defined(HAVE_SYS_MMAN_H) || defined(_WIN32) |
20 | # include <sys/mman.h> | 17 | # include <sys/mman.h> |
diff --git a/src/lib/ecore_ipc/ecore_ipc_private.h b/src/lib/ecore_ipc/ecore_ipc_private.h index 72ec014e7c..c964acd733 100644 --- a/src/lib/ecore_ipc/ecore_ipc_private.h +++ b/src/lib/ecore_ipc/ecore_ipc_private.h | |||
@@ -38,7 +38,7 @@ typedef struct _Ecore_Ipc_Msg_Head Ecore_Ipc_Msg_Head; | |||
38 | #define ECORE_IPC_TYPE 0x0f | 38 | #define ECORE_IPC_TYPE 0x0f |
39 | #define ECORE_IPC_SSL 0xf0 | 39 | #define ECORE_IPC_SSL 0xf0 |
40 | 40 | ||
41 | #if defined (_MSC_VER) || (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) | 41 | #if (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) |
42 | # pragma pack(1) | 42 | # pragma pack(1) |
43 | # define ECORE_IPC_STRUCT_PACKED | 43 | # define ECORE_IPC_STRUCT_PACKED |
44 | #elif defined (__GNUC__) || (defined (__SUNPRO_C) && __SUNPRO_C >= 0x5100) | 44 | #elif defined (__GNUC__) || (defined (__SUNPRO_C) && __SUNPRO_C >= 0x5100) |
diff --git a/src/lib/ecore_x/Ecore_X.h b/src/lib/ecore_x/Ecore_X.h index 03e3dec743..3a6afa19fc 100644 --- a/src/lib/ecore_x/Ecore_X.h +++ b/src/lib/ecore_x/Ecore_X.h | |||
@@ -8,23 +8,15 @@ | |||
8 | # undef EAPI | 8 | # undef EAPI |
9 | #endif // ifdef EAPI | 9 | #endif // ifdef EAPI |
10 | 10 | ||
11 | #ifdef _MSC_VER | 11 | #ifdef __GNUC__ |
12 | # ifdef BUILDING_DLL | 12 | # if __GNUC__ >= 4 |
13 | # define EAPI __declspec(dllexport) | 13 | # define EAPI __attribute__ ((visibility("default"))) |
14 | # else // ifdef BUILDING_DLL | 14 | # else // if __GNUC__ >= 4 |
15 | # define EAPI __declspec(dllimport) | ||
16 | # endif // ifdef BUILDING_DLL | ||
17 | #else // ifdef _MSC_VER | ||
18 | # ifdef __GNUC__ | ||
19 | # if __GNUC__ >= 4 | ||
20 | # define EAPI __attribute__ ((visibility("default"))) | ||
21 | # else // if __GNUC__ >= 4 | ||
22 | # define EAPI | ||
23 | # endif // if __GNUC__ >= 4 | ||
24 | # else // ifdef __GNUC__ | ||
25 | # define EAPI | 15 | # define EAPI |
26 | # endif // ifdef __GNUC__ | 16 | # endif // if __GNUC__ >= 4 |
27 | #endif // ifdef _MSC_VER | 17 | #else // ifdef __GNUC__ |
18 | # define EAPI | ||
19 | #endif // ifdef __GNUC__ | ||
28 | 20 | ||
29 | #define ECORE_X_VERSION_MAJOR EFL_VERSION_MAJOR | 21 | #define ECORE_X_VERSION_MAJOR EFL_VERSION_MAJOR |
30 | #define ECORE_X_VERSION_MINOR EFL_VERSION_MINOR | 22 | #define ECORE_X_VERSION_MINOR EFL_VERSION_MINOR |
diff --git a/src/lib/edje/edje_module.c b/src/lib/edje/edje_module.c index 318393d704..eb2d6c97ee 100644 --- a/src/lib/edje/edje_module.c +++ b/src/lib/edje/edje_module.c | |||
@@ -106,9 +106,7 @@ _edje_module_init(void) | |||
106 | /* 1. libedje.so/../edje/modules/ */ | 106 | /* 1. libedje.so/../edje/modules/ */ |
107 | paths[0] = eina_module_symbol_path_get(_edje_module_init, "/edje/modules"); | 107 | paths[0] = eina_module_symbol_path_get(_edje_module_init, "/edje/modules"); |
108 | /* 2. PREFIX/edje/modules/ */ | 108 | /* 2. PREFIX/edje/modules/ */ |
109 | #ifndef _MSC_VER | ||
110 | paths[1] = strdup(PACKAGE_LIB_DIR "/edje/modules"); | 109 | paths[1] = strdup(PACKAGE_LIB_DIR "/edje/modules"); |
111 | #endif | ||
112 | 110 | ||
113 | for (j = 0; j < ((sizeof (paths) / sizeof (char *)) - 1); ++j) | 111 | for (j = 0; j < ((sizeof (paths) / sizeof (char *)) - 1); ++j) |
114 | for (i = j + 1; i < sizeof (paths) / sizeof (char *); ++i) | 112 | for (i = j + 1; i < sizeof (paths) / sizeof (char *); ++i) |
diff --git a/src/lib/eina/eina_hash.c b/src/lib/eina/eina_hash.c index a8ecdb8929..b6465c7df8 100644 --- a/src/lib/eina/eina_hash.c +++ b/src/lib/eina/eina_hash.c | |||
@@ -26,10 +26,6 @@ | |||
26 | #include <stdint.h> | 26 | #include <stdint.h> |
27 | #include <string.h> | 27 | #include <string.h> |
28 | 28 | ||
29 | #ifdef _MSC_VER | ||
30 | # include <Evil.h> | ||
31 | #endif | ||
32 | |||
33 | #include "eina_config.h" | 29 | #include "eina_config.h" |
34 | #include "eina_private.h" | 30 | #include "eina_private.h" |
35 | #include "eina_rbtree.h" | 31 | #include "eina_rbtree.h" |
@@ -143,7 +139,7 @@ struct _Eina_Hash_Each | |||
143 | 139 | ||
144 | #undef get16bits | 140 | #undef get16bits |
145 | #if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \ | 141 | #if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \ |
146 | || defined(_MSC_VER) || defined (__BORLANDC__) || defined (__TURBOC__) | 142 | || defined (__BORLANDC__) || defined (__TURBOC__) |
147 | # define get16bits(d) (*((const uint16_t *)(d))) | 143 | # define get16bits(d) (*((const uint16_t *)(d))) |
148 | #endif | 144 | #endif |
149 | 145 | ||
diff --git a/src/lib/embryo/embryo_private.h b/src/lib/embryo/embryo_private.h index b63dbbdc8b..4bf8ceb2c6 100644 --- a/src/lib/embryo/embryo_private.h +++ b/src/lib/embryo/embryo_private.h | |||
@@ -270,7 +270,7 @@ struct _Embryo_Program | |||
270 | void *data; | 270 | void *data; |
271 | }; | 271 | }; |
272 | 272 | ||
273 | #if defined (_MSC_VER) || (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) | 273 | #if (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) |
274 | # pragma pack(1) | 274 | # pragma pack(1) |
275 | # define EMBRYO_STRUCT_PACKED | 275 | # define EMBRYO_STRUCT_PACKED |
276 | #elif defined (__GNUC__) || (defined (__SUNPRO_C) && __SUNPRO_C >= 0x5100) | 276 | #elif defined (__GNUC__) || (defined (__SUNPRO_C) && __SUNPRO_C >= 0x5100) |
@@ -306,7 +306,7 @@ struct _Embryo_Header | |||
306 | int nametable; /* name table, file version 7 only */ | 306 | int nametable; /* name table, file version 7 only */ |
307 | } EMBRYO_STRUCT_PACKED; | 307 | } EMBRYO_STRUCT_PACKED; |
308 | 308 | ||
309 | #if defined _MSC_VER || (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) | 309 | #if (defined (__SUNPRO_C) && __SUNPRO_C < 0x5100) |
310 | # pragma pack() | 310 | # pragma pack() |
311 | #endif | 311 | #endif |
312 | 312 | ||
diff --git a/src/lib/embryo/embryo_time.c b/src/lib/embryo/embryo_time.c index 1e74816458..be32be7a14 100644 --- a/src/lib/embryo/embryo_time.c +++ b/src/lib/embryo/embryo_time.c | |||
@@ -5,10 +5,6 @@ | |||
5 | #include <sys/time.h> | 5 | #include <sys/time.h> |
6 | #include <time.h> | 6 | #include <time.h> |
7 | 7 | ||
8 | #ifdef _MSC_VER | ||
9 | # include <winsock2.h> | ||
10 | #endif | ||
11 | |||
12 | #ifdef _WIN32 | 8 | #ifdef _WIN32 |
13 | # include <Evil.h> | 9 | # include <Evil.h> |
14 | #endif | 10 | #endif |
diff --git a/src/lib/evas/canvas/evas_async_events.c b/src/lib/evas/canvas/evas_async_events.c index ad03284b83..5cbf90a201 100644 --- a/src/lib/evas/canvas/evas_async_events.c +++ b/src/lib/evas/canvas/evas_async_events.c | |||
@@ -2,9 +2,7 @@ | |||
2 | # include <config.h> | 2 | # include <config.h> |
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | #ifndef _MSC_VER | 5 | #include <unistd.h> |
6 | # include <unistd.h> | ||
7 | #endif | ||
8 | #include <errno.h> | 6 | #include <errno.h> |
9 | 7 | ||
10 | #ifdef _WIN32 | 8 | #ifdef _WIN32 |
diff --git a/src/lib/evas/canvas/evas_font_dir.c b/src/lib/evas/canvas/evas_font_dir.c index cbdef108ff..f73b77dab1 100644 --- a/src/lib/evas/canvas/evas_font_dir.c +++ b/src/lib/evas/canvas/evas_font_dir.c | |||
@@ -66,10 +66,8 @@ static FcConfig *fc_config = NULL; | |||
66 | /* FIXME move these helper function to eina_file or eina_path */ | 66 | /* FIXME move these helper function to eina_file or eina_path */ |
67 | /* get the casefold feature! */ | 67 | /* get the casefold feature! */ |
68 | #include <fnmatch.h> | 68 | #include <fnmatch.h> |
69 | #ifndef _MSC_VER | 69 | #include <unistd.h> |
70 | # include <unistd.h> | 70 | #include <sys/param.h> |
71 | # include <sys/param.h> | ||
72 | #endif | ||
73 | int | 71 | int |
74 | _file_path_is_full_path(const char *path) | 72 | _file_path_is_full_path(const char *path) |
75 | { | 73 | { |
diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c index bdcd5e8500..b4cabf845b 100644 --- a/src/lib/evas/file/evas_module.c +++ b/src/lib/evas/file/evas_module.c | |||
@@ -147,7 +147,6 @@ evas_module_paths_init(void) | |||
147 | evas_module_paths = _evas_module_append(evas_module_paths, path); | 147 | evas_module_paths = _evas_module_append(evas_module_paths, path); |
148 | 148 | ||
149 | /* 2. PREFIX/lib/evas/modules/ */ | 149 | /* 2. PREFIX/lib/evas/modules/ */ |
150 | #ifndef _MSC_VER | ||
151 | path = PACKAGE_LIB_DIR "/evas/modules"; | 150 | path = PACKAGE_LIB_DIR "/evas/modules"; |
152 | if (!eina_list_search_unsorted(evas_module_paths, (Eina_Compare_Cb) strcmp, path)) | 151 | if (!eina_list_search_unsorted(evas_module_paths, (Eina_Compare_Cb) strcmp, path)) |
153 | { | 152 | { |
@@ -155,7 +154,6 @@ evas_module_paths_init(void) | |||
155 | if (path) | 154 | if (path) |
156 | evas_module_paths = _evas_module_append(evas_module_paths, path); | 155 | evas_module_paths = _evas_module_append(evas_module_paths, path); |
157 | } | 156 | } |
158 | #endif | ||
159 | } | 157 | } |
160 | 158 | ||
161 | #define EVAS_EINA_STATIC_MODULE_DEFINE(Tn, Name) \ | 159 | #define EVAS_EINA_STATIC_MODULE_DEFINE(Tn, Name) \ |
diff --git a/src/lib/evas/file/evas_path.c b/src/lib/evas/file/evas_path.c index 6144759616..19eabe4835 100644 --- a/src/lib/evas/file/evas_path.c +++ b/src/lib/evas/file/evas_path.c | |||
@@ -13,10 +13,8 @@ | |||
13 | #include <sys/stat.h> | 13 | #include <sys/stat.h> |
14 | /* get the casefold feature! */ | 14 | /* get the casefold feature! */ |
15 | #include <fnmatch.h> | 15 | #include <fnmatch.h> |
16 | #ifndef _MSC_VER | 16 | #include <unistd.h> |
17 | # include <unistd.h> | 17 | #include <sys/param.h> |
18 | # include <sys/param.h> | ||
19 | #endif | ||
20 | 18 | ||
21 | #ifdef _WIN32 | 19 | #ifdef _WIN32 |
22 | # include <Evil.h> | 20 | # include <Evil.h> |
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h index 6518b16f93..27332c0c67 100644 --- a/src/lib/evas/include/evas_common_private.h +++ b/src/lib/evas/include/evas_common_private.h | |||
@@ -21,11 +21,8 @@ | |||
21 | #include <sys/stat.h> | 21 | #include <sys/stat.h> |
22 | #include <time.h> | 22 | #include <time.h> |
23 | #include <ctype.h> | 23 | #include <ctype.h> |
24 | 24 | #include <stdint.h> | |
25 | #ifndef _MSC_VER | ||
26 | # include <stdint.h> | ||
27 | #include <unistd.h> | 25 | #include <unistd.h> |
28 | #endif | ||
29 | 26 | ||
30 | #ifdef _WIN32 | 27 | #ifdef _WIN32 |
31 | # include <Evil.h> | 28 | # include <Evil.h> |