milton icon indicating copy to clipboard operation
milton copied to clipboard

Fix platform_windows broken since #190 extern "C" fix for platform_unix

Open gavinbeatty opened this issue 2 years ago • 0 comments

win32_log and win32_log_args were not declared extern "C" even though they were defined extern "C".

Without the fix, build.bat has the following errors:

src\platform_windows.cc(372): error C2732: linkage specification contradicts earlier specification for 'win32_log'
src\platform_windows.cc(371): note: see declaration of 'win32_log'
src\platform_windows.cc(383): error C2732: linkage specification contradicts earlier specification for 'win32_log_args'
src\platform_windows.cc(382): note: see declaration of 'win32_log_args'

Apologies, this was introduced by me when fixing Linux builds in #190.

gavinbeatty avatar Jul 20 '22 21:07 gavinbeatty