diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..8fba11c48 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,36 @@ +{ + "C_Cpp.default.compilerPath": ".cosmocc/3.7.1/bin/aarch64-linux-cosmo-c++", + "C_Cpp.default.compilerArgs": [ + "-nostdinc", + "-nostdlib", + "-iquote.", + "-isystemlibc/isystem", + "-isystemthird_party/libcxx", + "-includelibc/integral/normalize.inc", + "-D_COSMO_SOURCE", + "-D__aarch64__" + ], + "[c]": { + "editor.tabSize": 2, + "editor.insertSpaces": true + }, + "[cpp]": { + "editor.tabSize": 2, + "editor.insertSpaces": true + }, + "[makefile]": { + "editor.tabSize": 8, + "editor.insertSpaces": false + }, + "[make]": { + "editor.tabSize": 8, + "editor.insertSpaces": false + }, + "[assembly]": { + "editor.tabSize": 8, + "editor.insertSpaces": true + }, + "files.associations": { + "log.h": "c" + } +} \ No newline at end of file diff --git a/libc/dlopen/stubs.c b/libc/dlopen/stubs.c index 9a94e891b..57c3f0724 100644 --- a/libc/dlopen/stubs.c +++ b/libc/dlopen/stubs.c @@ -27,7 +27,7 @@ * * @return null always */ -void *dlopen(const char *, int) { +void *dlopen(const char *, int) { return 0; } diff --git a/libc/log/log.h b/libc/log/log.h index d8e62f7ea..7f2498cc4 100644 --- a/libc/log/log.h +++ b/libc/log/log.h @@ -48,8 +48,6 @@ void PrintGarbage(void); void PrintGarbageNumeric(FILE *); void PrintWindowsMemory(const char *, size_t); -#ifndef __STRICT_ANSI__ - #define _LOG_UNLIKELY(x) __builtin_expect(!!(x), 0) extern unsigned __log_level; /* log level for runtime check */ @@ -245,7 +243,6 @@ void vffatalf(ARGS, va_list) asm("vflogf") ATTRV relegated wontreturn libcesque; #undef ATTR #undef ATTRV -#endif /* __STRICT_ANSI__ */ COSMOPOLITAN_C_END_ #endif /* COSMOPOLITAN_LIBC_LOG_LOG_H_ */ #endif /* _COSMO_SOURCE */