diff --git a/build/vs2010/Lol.Fx.props b/build/vs2010/Lol.Fx.props
index 07bcfb28..758a3f70 100644
--- a/build/vs2010/Lol.Fx.props
+++ b/build/vs2010/Lol.Fx.props
@@ -14,7 +14,7 @@
@echo off
set D=$(IntDir)%(Filename)%(Extension).cpp
echo /* This file was autogenerated. DO NOT MODIFY IT. */ > "%D%"
-echo char const *lolfx_resource_%(Filename) = >> "%D%"
+echo extern "C" { char const *lolfx_resource_%(Filename) = >> "%D%"
setlocal disabledelayedexpansion
for /F "tokens=1,* delims=`" %%L in ('type "%(Fullpath)"') do (
set "line=%%L"
@@ -23,7 +23,7 @@ for /F "tokens=1,* delims=`" %%L in ('type "%(Fullpath)"') do (
endlocal
)
endlocal
-echo ; >> "%D%"
+echo ;} >> "%D%"
$(IntDir)%(FileName)%(Extension).cpp
%(FileName)%(Extension)