summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a633a3e)
raw | patch | inline | side by side (parent: a633a3e)
author | Jasper van de Gronde <th.v.d.gronde@hccnet.nl> | |
Wed, 4 Aug 2010 09:25:00 +0000 (11:25 +0200) | ||
committer | Jasper van de Gronde <th.v.d.gronde@hccnet.nl> | |
Wed, 4 Aug 2010 09:25:00 +0000 (11:25 +0200) |
src/extension/internal/emf-win32-inout.cpp | patch | blob | history |
diff --git a/src/extension/internal/emf-win32-inout.cpp b/src/extension/internal/emf-win32-inout.cpp
index 0e283b909fde8240d742a93b9669ba4fb0871c3a..98b5f01147ffce47608ecd95d3348edcb04c8b43 100644 (file)
d.pDesc[lstrlen(d.pDesc)] = '#';
}
- EnumEnhMetaFile(NULL, hemf, myEnhMetaFileProc, (LPVOID) &d, NULL);
+ // This ugly reinterpret_cast is to prevent old versions of gcc from whining about a mismatch in the const-ness of the arguments
+ EnumEnhMetaFile(NULL, hemf, reinterpret_cast<ENHMFENUMPROC>(myEnhMetaFileProc), (LPVOID) &d, NULL);
DeleteEnhMetaFile(hemf);
}
else {