5a96eb68b2
- changes necessary to get back a buildable version with mingw, last adapted with https://github.com/notepad-plus-plus/notepad-plus-plus/pull/1229 - fixed some gcc compiler errors and warnings, see https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.3 to https://ci.appveyor.com/project/chcg/notepad-plus-plus/build/1.0.13 - remaining task is the wincontrol "ReadDirectoryChanges", which uses ATL, propably not available with mingw Closes #2478
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
//this file contains definitions not available in gcc 3.4.5,
|
|
//but are needed for Notepad++
|
|
//the makefile will automatically include this header file
|
|
|
|
//GetLongPathName = 410
|
|
//Multimonitor: 410
|
|
#define _WIN32_WINDOWS 0x0410
|
|
//Toolbar imagelist = 300
|
|
//TCS_BOTTOM = 300
|
|
//LVS_EX_BORDERSELECT = 500
|
|
//TBSTYLE_EX_HIDECLIPPEDBUTTONS = 501
|
|
//#define _WIN32_IE 0x501
|
|
//Theme (uxtheme)
|
|
#define _WIN32_WINNT 0x0501
|
|
|
|
//#include <windows.h>
|
|
|
|
#if (_WIN32_IE >= 0x0400)
|
|
#define TCN_GETOBJECT (TCN_FIRST - 3)
|
|
#endif
|
|
|
|
#if (_WIN32_IE >= 0x0500)
|
|
#define RBN_CHEVRONPUSHED (RBN_FIRST - 10)
|
|
#endif // _WIN32_IE >= 0x0500
|
|
/*
|
|
#ifndef max
|
|
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
|
#endif
|
|
|
|
#ifndef min
|
|
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
|
#endif
|
|
*/
|
|
|
|
static inline int max(unsigned int a, unsigned int b) {
|
|
return (((a) > (b)) ? (a) : (b));
|
|
}
|
|
|
|
static inline int min(unsigned int a, unsigned int b) {
|
|
return (((a) < (b)) ? (a) : (b));
|
|
}
|
|
|
|
//__try and __except dont work in gcc, so heres some defines to take em out
|
|
#define __try try
|
|
#define __except(x) catch(...)
|
|
|
|
//Missing unicode CRT funcs
|
|
//double _wtof(const wchar_t * string);
|
|
|
|
// from MinGW include/driverspecs.h
|
|
#define __inout
|
|
#define __inout_opt
|