summaryrefslogtreecommitdiffstats
path: root/src/angle/src/d3dcompiler/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/angle/src/d3dcompiler/main.cpp')
-rw-r--r--src/angle/src/d3dcompiler/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/angle/src/d3dcompiler/main.cpp b/src/angle/src/d3dcompiler/main.cpp
index 96d71d5e0d..70a8f30fb0 100644
--- a/src/angle/src/d3dcompiler/main.cpp
+++ b/src/angle/src/d3dcompiler/main.cpp
@@ -188,9 +188,12 @@ static QString makePath(const QDir &parent, const QString &child)
} // namespace D3DCompiler
-extern "C" __declspec(dllexport) HRESULT WINAPI D3DCompile(
+#ifdef __MINGW32__
+extern "C"
+#endif
+__declspec(dllexport) HRESULT WINAPI D3DCompile(
const void *, SIZE_T, const char *, const D3D_SHADER_MACRO *, ID3DInclude *,
- const char *t, const char *, UINT, UINT, ID3DBlob **, ID3DBlob **);
+ const char *, const char *, UINT, UINT, ID3DBlob **, ID3DBlob **);
HRESULT WINAPI D3DCompile(
const void *data, SIZE_T data_size, const char *filename,