develop.uap-core.de/git
/
uwplayer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add single instance mode
[uwplayer.git]
/
ucx
/
cx
/
common.h
diff --git
a/ucx/cx/common.h
b/ucx/cx/common.h
index
38962c8
..
794c41d
100644
(file)
--- a/
ucx/cx/common.h
+++ b/
ucx/cx/common.h
@@
-89,10
+89,13
@@
/** Version constant which ensures to increase monotonically. */
#define UCX_VERSION (((UCX_VERSION_MAJOR)<<16)|UCX_VERSION_MINOR)
/** Version constant which ensures to increase monotonically. */
#define UCX_VERSION (((UCX_VERSION_MAJOR)<<16)|UCX_VERSION_MINOR)
+// Common Includes
+
#include <stdlib.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
+#include <sys/types.h>
/**
* Function pointer compatible with fwrite-like functions.
/**
* Function pointer compatible with fwrite-like functions.
@@
-114,17
+117,8
@@
typedef size_t (*cx_read_func)(
void *
);
void *
);
-#ifdef _WIN32
-
-#ifdef __MINGW32__
-#include <sys/types.h>
-#endif // __MINGW32__
-
-#else // !_WIN32
-
-#include <sys/types.h>
-#endif // _WIN32
+// Compiler specific stuff
#ifndef __GNUC__
/**
#ifndef __GNUC__
/**
@@
-133,4
+127,15
@@
typedef size_t (*cx_read_func)(
#define __attribute__(x)
#endif
#define __attribute__(x)
#endif
+#ifdef _MSC_VER
+
+// fix missing ssize_t definition
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+
+// fix missing _Thread_local support
+#define _Thread_local __declspec(thread)
+
+#endif
+
#endif // UCX_COMMON_H
#endif // UCX_COMMON_H