diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2010-08-04 09:25:00 +0000 |
|---|---|---|
| committer | Jasper van de Gronde <th.v.d.gronde@hccnet.nl> | 2010-08-04 09:25:00 +0000 |
| commit | 46d8863ef81a9614385298c6ccd2664402aafef0 (patch) | |
| tree | 98e6d03f66fea48e34071a85c919f5226d88123e /src | |
| parent | Fix for subtle bug in parsing export area, found by Vaughn Spurlin using Cove... (diff) | |
| download | inkscape-46d8863ef81a9614385298c6ccd2664402aafef0.tar.gz inkscape-46d8863ef81a9614385298c6ccd2664402aafef0.zip | |
Added reinterpret_cast to work around a difference of opinion between gcc versions.
(bzr r9684)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/internal/emf-win32-inout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extension/internal/emf-win32-inout.cpp b/src/extension/internal/emf-win32-inout.cpp index 0e283b909..98b5f0114 100644 --- a/src/extension/internal/emf-win32-inout.cpp +++ b/src/extension/internal/emf-win32-inout.cpp @@ -2353,7 +2353,8 @@ EmfWin32::open( Inkscape::Extension::Input * /*mod*/, const gchar *uri ) 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 { |
