Skip to content

Commit

Permalink
Compile with C99 features on Windows.
Browse files Browse the repository at this point in the history
Windows (MSVC) has had support for C99 features for quite a while now (since 2013?) so no reason to restrict it to C89, Also some features that are specific to Pluto (such as `math.round`) already have a hard requirement for C99 anyways.

In regular PUC Lua the only places that really take advantage of C99 cross-platform are `math.log` when it's second argument is `2` and some core functions around the codebase trying to hint to the compiler to be inlined.
  • Loading branch information
goodusername123 authored Feb 9, 2025
1 parent 94fb9b6 commit 0056a3e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/luaconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@

#if defined(LUA_USE_WINDOWS)
#define LUA_DL_DLL /* enable support for DLL */
#define LUA_USE_C89 /* broadly, Windows is C89 */
#endif


Expand Down

0 comments on commit 0056a3e

Please sign in to comment.