In hindsight my emscripten-ifdef (70d416a8f63f) is nonsense.
As fpcrtl_glShaderSource() would not be defined and lead to compiling issues.
So either it's 3 ifdefs (in pas2cRedo, pas2cSystem and misc.c),
in order to toggle between fpcrtl_ and the native function,
or alternatively have no ifdef for it at all.
I'm going with none at all,
which means emscripten will compile with the original (const) function prototype,
being wrapped by the fpcrtl_ function, same as non-emscripten builds.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSApplicationCategoryType</key>
<string>public.app-category.strategy-games</string>
<key>CFBundleName</key>
<string>Hedgewars</string>
<key>CFBundleExecutable</key>
<string>hedgewars</string>
<key>CFBundleGetInfoString</key>
<string>https://www.hedgewars.org</string>
<key>CFBundleIconFile</key>
<string>Icon.icns</string>
<key>CFBundleIdentifier</key>
<string>org.hedgewars.desktop</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>Hedge</string>
<key>CFBundleVersion</key>
<string>${HEDGEWARS_REVISION}</string>
<key>CFBundleShortVersionString</key>
<string>${HEDGEWARS_VERSION}</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2004-2015, Hedgewars Project</string>
<key>NSAppleScriptEnabled</key>
<true/>
<key>LSRequiresNativeExecution</key>
<true/>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6.0</string>
<key>i386</key>
<string>10.4.0</string>
<key>ppc</key>
<string>10.4.0</string>
</dict>
<key>LSArchitecturePriority</key>
<array>
<string>x86_64</string>
<string>i386</string>
<string>ppc</string>
</array>
<key>LSMinimumSystemVersion</key>
<string>${minimum_macosx_version}</string>
<key>NSHighResolutionCapable</key>
<string>True</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
<key>SUFeedURL</key>
<string>https://www.hedgewars.org/download/appcast.xml</string>
<key>CFBundleLocalizations</key>
<array>
<string>ar</string>
<string>bg</string>
<string>cs</string>
<string>da</string>
<string>de</string>
<string>el</string>
<string>en</string>
<string>es</string>
<string>fi</string>
<string>fr</string>
<string>gl</string>
<string>hu</string>
<string>it</string>
<string>ja</string>
<string>ko</string>
<string>lt</string>
<string>nl</string>
<string>pl</string>
<string>pt_BR</string>
<string>pt_PT</string>
<string>ro</string>
<string>ru</string>
<string>sk</string>
<string>sv</string>
<string>tr_TR</string>
<string>uk</string>
<string>zh_CN</string>
<string>zh_TW</string>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>org.hedgewars.desktop.hws</string>
<key>UTTypeReferenceURL</key>
<string>https://www.hedgewars.org/demos/</string>
<key>UTTypeDescription</key>
<string>Hedgewars Save Game</string>
<key>UTTypeIconFile</key>
<string>public.text.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>hws</string>
</array>
<key>public.mime-type</key>
<string>application/x-hedgewars-save</string>
</dict>
</dict>
<dict>
<key>UTTypeIdentifier</key>
<string>org.hedgewars.desktop.hwd</string>
<key>UTTypeReferenceURL</key>
<string>https://www.hedgewars.org/demos/</string>
<key>UTTypeIconFile</key>
<string>public.text.icns</string>
<key>UTTypeDescription</key>
<string>Hedgewars Demo Game</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>hwd</string>
</array>
<key>public.mime-type</key>
<string>application/x-hedgewars-demo</string>
</dict>
</dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFile</key>
<string>hwico.icns</string>
<key>CFBundleTypeName</key>
<string>Hedgewars Savefile</string>
<key>LSItemContentTypes</key>
<array>
<string>org.hedgewars.desktop.hws</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeIconFile</key>
<string>hwico.icns</string>
<key>CFBundleTypeName</key>
<string>Hedgewars Demofile</string>
<key>LSItemContentTypes</key>
<array>
<string>org.hedgewars.desktop.hwd</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>Hedgewars URIs</string>
<key>CFBundleURLSchemes</key>
<array>
<!--
<string>hwd</string>
<string>hws</string>
<string>hwdlc</string>
-->
<string>hwplay</string>
</array>
</dict>
</array>
</dict>
</plist>