diff --git a/CMakeLists.txt b/CMakeLists.txt index 19c29ae2..46be7a25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,7 +142,7 @@ if(LUAU_EXTERN_C) target_compile_definitions(Luau.VM PUBLIC LUA_USE_LONGJMP=1) if(LUAU_EXPORT_DLL) target_compile_definitions(Luau.VM PUBLIC LUA_API_C_EXPORT) - target_compile_definitions(Luau.Compiler PUBLIC LUACOPDE_API_C_EXPORT) + target_compile_definitions(Luau.Compiler PUBLIC LUACODE_API_C_EXPORT) else() target_compile_definitions(Luau.VM PUBLIC LUA_API=extern\"C\") target_compile_definitions(Luau.Compiler PUBLIC LUACODE_API=extern\"C\") @@ -150,7 +150,7 @@ if(LUAU_EXTERN_C) else() if(LUAU_EXPORT_DLL) target_compile_definitions(Luau.VM PUBLIC LUA_API_EXPORT) - target_compile_definitions(Luau.Compiler PUBLIC LUACOPDE_API_EXPORT) + target_compile_definitions(Luau.Compiler PUBLIC LUACODE_API_EXPORT) endif() endif() diff --git a/Compiler/include/luacode.h b/Compiler/include/luacode.h index a542ada0..08a207a5 100644 --- a/Compiler/include/luacode.h +++ b/Compiler/include/luacode.h @@ -4,11 +4,11 @@ #include // Can be used to export public APIs to DLL -#ifdef LUA_API_C_EXPORT +#ifdef LUACODE_API_C_EXPORT #define LUACODE_API extern "C" __declspec(dllexport) #endif -#ifdef LUA_API_EXPORT +#ifdef LUACODE_API_EXPORT #define LUACODE_API extern __declspec(dllexport) #endif