diff options
| -rw-r--r-- | CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/IO.c | 2 | ||||
| -rw-r--r-- | src/Platform/Dummy/Tss.c | 3 | ||||
| -rwxr-xr-x | util/trim-whitespace.sh | 3 |
4 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bc58de1..b3f7f6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,8 +187,8 @@ elseif(UNIX) list(APPEND BH_SOURCE ${BH_SOURCE_POSIX_MT}) list(APPEND BH_HEADER ${BH_HEADER_POSIX_MT}) else() - list(APPEND BH_SOURCE ${BH_SOURCE_POSIX_MT}) - list(APPEND BH_HEADER ${BH_HEADER_POSIX_MT}) + list(APPEND BH_SOURCE ${BH_SOURCE_DUMMY_MT}) + list(APPEND BH_HEADER ${BH_HEADER_DUMMY_MT}) endif() else() message(STATUS "Platform: Unknown") @@ -1,5 +1,5 @@ #include <BH/IO.h> -#include <malloc.h> +#include <stdlib.h> #define BUFFER_SIZE (sizeof(char *)) diff --git a/src/Platform/Dummy/Tss.c b/src/Platform/Dummy/Tss.c index 4b83931..61a0bcd 100644 --- a/src/Platform/Dummy/Tss.c +++ b/src/Platform/Dummy/Tss.c @@ -3,13 +3,14 @@ int BH_TssCreate(BH_GenericCallback callback) { - BH_UNUSED(callback); + return 0; } void *BH_TssRead(int index) { + BH_UNUSED(index); return NULL; } diff --git a/util/trim-whitespace.sh b/util/trim-whitespace.sh index 34a9c58..f661aa3 100755 --- a/util/trim-whitespace.sh +++ b/util/trim-whitespace.sh @@ -1,2 +1,3 @@ #!/bin/sh -find . \( -iname "*.h" -o -iname "*.c" \) -exec sed -i "s/[ \t]*$//" {} \;
\ No newline at end of file +find . \( -iname "*.h" -o -iname "*.c" \) -exec sed -i .bak "s/[ ]*$//" {} \; +find . -iname "*.bak" -exec rm {} \; |
