Page MenuHomePhabricator

ecore_win32: use AddClipboardFormatListener and RemoveClipboardFormatListener explicitely instead of loading them from user32.dll
ClosedPublic

Authored by vtorri on Apr 17 2019, 2:27 PM.

Details

Summary

current mingw-w64 declare these functions

Test Plan

compilation

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vtorri created this revision.Apr 17 2019, 2:27 PM
vtorri requested review of this revision.Apr 17 2019, 2:27 PM
zmike accepted this revision.Apr 17 2019, 2:31 PM
This revision is now accepted and ready to land.Apr 17 2019, 2:31 PM
This revision was automatically updated to reflect the committed changes.

Is it possible that "-luser32" is missing in the flags for building ecore_win32 ?

no because gcc (for windows) adds it by default, otherwise you will have a bunch of functions which are not defined.

do you have a log ?

because mingw-w64 is too old. The fix is done in the link I gave : https://sourceforge.net/p/mingw-w64/mailman/message/34033485/

the header files declared the function but the import lib does not "defined" it (it's not really a definition of function in that case)

As I said, with a recent mingw-w64, no problem