diff options
| author | Shauren <shauren.trinity@gmail.com> | 2019-10-29 19:01:39 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2019-10-29 19:01:39 +0100 |
| commit | c7b41574376c21eb37ed6d45dc4f1b3bf1b528c4 (patch) | |
| tree | d14503fb201a38ea913627a7b00a8fd395e3a2a9 /dep/CascLib/src/CascPort.h | |
| parent | 4328e1dfb2ba0900e6a053622f16da1cd5debc9b (diff) | |
Dep/CascLib: Update to ladislav-zezula/CascLib@225777494069b0b0e18bea3ffeb3773d44a70b30
Diffstat (limited to 'dep/CascLib/src/CascPort.h')
| -rw-r--r-- | dep/CascLib/src/CascPort.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/dep/CascLib/src/CascPort.h b/dep/CascLib/src/CascPort.h index 21cd991a09c..9f401f80b2e 100644 --- a/dep/CascLib/src/CascPort.h +++ b/dep/CascLib/src/CascPort.h @@ -80,15 +80,19 @@ #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> - #include <unistd.h> #include <fcntl.h> - #include <stdlib.h> #include <dirent.h> - #include <errno.h> + #include <unistd.h> #include <stddef.h> + #include <stdint.h> + #include <stdlib.h> + #include <stdio.h> + #include <stdarg.h> #include <string.h> #include <ctype.h> + #include <wchar.h> #include <cassert> + #include <errno.h> // Support for PowerPC on Max OS X #if (__ppc__ == 1) || (__POWERPC__ == 1) || (_ARCH_PPC == 1) @@ -261,6 +265,10 @@ #define ERROR_CANCELLED 1009 #endif +#ifndef ERROR_INDEX_PARSING_DONE +#define ERROR_INDEX_PARSING_DONE 1010 +#endif + #ifndef _countof #define _countof(x) (sizeof(x) / sizeof(x[0])) #endif @@ -321,7 +329,7 @@ inline DWORD CascInterlockedIncrement(PDWORD PtrValue) inline DWORD CascInterlockedDecrement(PDWORD PtrValue) { #ifdef PLATFORM_WINDOWS - return (DWORD)InterlockedIncrement((LONG *)(PtrValue)); + return (DWORD)InterlockedDecrement((LONG *)(PtrValue)); #else return --PtrValue[0]; #endif |
