MSVC cannot compile with CLAY_DLL
Author: thePHTestCreated Jul 3, 2026Updated Jul 3, 2026
CLAY_DLL_EXPORT places __stdcall before the function's return type, which cl rejects as a syntax error (in both C and C++ modes). clang / clang-cl accept it. It needs to come after the return type when compiling with MSVC.
Source: nicbarker/clay