#endif
#include <windows.h>
#include <ddeml.h> /* DDE management library */
-#if !defined(__CYGWIN32__) && !defined(__MINGW32__)
+#if !defined(__CYGWIN32__) && !defined(__MINGW32__) \
+ || CYGWIN_VERSION_DLL_MAJOR > 20
#include <shellapi.h> /* FileManager/Explorer drag and drop */
#include <commctrl.h>
#endif