Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/X11
File: Xwindows.h
/*
[0] Fix | Delete
[1] Fix | Delete
Copyright 1996, 1998 The Open Group
[2] Fix | Delete
[3] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[4] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[5] Fix | Delete
the above copyright notice appear in all copies and that both that
[6] Fix | Delete
copyright notice and this permission notice appear in supporting
[7] Fix | Delete
documentation.
[8] Fix | Delete
[9] Fix | Delete
The above copyright notice and this permission notice shall be included
[10] Fix | Delete
in all copies or substantial portions of the Software.
[11] Fix | Delete
[12] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
[13] Fix | Delete
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
[14] Fix | Delete
ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
[15] Fix | Delete
SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL-
[16] Fix | Delete
ITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
[17] Fix | Delete
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
[18] Fix | Delete
IN THE SOFTWARE.
[19] Fix | Delete
[20] Fix | Delete
Except as contained in this notice, the name of The Open Group shall
[21] Fix | Delete
not be used in advertising or otherwise to promote the sale, use or
[22] Fix | Delete
other dealings in this Software without prior written authorization from
[23] Fix | Delete
The Open Group.
[24] Fix | Delete
[25] Fix | Delete
*/
[26] Fix | Delete
[27] Fix | Delete
/*
[28] Fix | Delete
* This header file has the sole purpose of allowing the inclusion of
[29] Fix | Delete
* windows.h without getting any name conflicts with X headers code, by
[30] Fix | Delete
* renaming or disabling the conflicting definitions from windows.h
[31] Fix | Delete
*/
[32] Fix | Delete
[33] Fix | Delete
/*
[34] Fix | Delete
* Mingw.org versions of the Windows API headers actually avoid
[35] Fix | Delete
* making the conflicting definitions if XFree86Server is defined, so we
[36] Fix | Delete
* need to remember if that was defined and undefine it during including
[37] Fix | Delete
* windows.h (so the conflicting definitions get wrapped correctly), and
[38] Fix | Delete
* then redefine it afterwards. (This was never the correct thing to
[39] Fix | Delete
* do as it's no help at all to X11 clients which also need to use the
[40] Fix | Delete
* Win32 API)
[41] Fix | Delete
*/
[42] Fix | Delete
#undef _XFree86Server
[43] Fix | Delete
#ifdef XFree86Server
[44] Fix | Delete
# define _XFree86Server
[45] Fix | Delete
# undef XFree86Server
[46] Fix | Delete
#endif
[47] Fix | Delete
[48] Fix | Delete
/*
[49] Fix | Delete
* There doesn't seem to be a good way to wrap the min/max macros from
[50] Fix | Delete
* windows.h, so we simply avoid defining them completely, allowing any
[51] Fix | Delete
* pre-existing definition to stand.
[52] Fix | Delete
*
[53] Fix | Delete
*/
[54] Fix | Delete
#define NOMINMAX
[55] Fix | Delete
[56] Fix | Delete
/*
[57] Fix | Delete
* mingw-w64 headers define BOOL as a typedef, protecting against macros
[58] Fix | Delete
* mingw.org headers define BOOL in terms of WINBOOL
[59] Fix | Delete
* ... so try to come up with something which works with both :-)
[60] Fix | Delete
*/
[61] Fix | Delete
#define _NO_BOOL_TYPEDEF
[62] Fix | Delete
#define BOOL WINBOOL
[63] Fix | Delete
#define INT32 wINT32
[64] Fix | Delete
#ifdef __x86_64__
[65] Fix | Delete
#define INT64 wINT64
[66] Fix | Delete
#define LONG64 wLONG64
[67] Fix | Delete
#endif
[68] Fix | Delete
#undef Status
[69] Fix | Delete
#define Status wStatus
[70] Fix | Delete
#define ATOM wATOM
[71] Fix | Delete
#define BYTE wBYTE
[72] Fix | Delete
#define FreeResource wFreeResource
[73] Fix | Delete
#include <windows.h>
[74] Fix | Delete
#undef NOMINMAX
[75] Fix | Delete
#undef Status
[76] Fix | Delete
#define Status int
[77] Fix | Delete
#undef BYTE
[78] Fix | Delete
#undef BOOL
[79] Fix | Delete
#undef INT32
[80] Fix | Delete
#undef INT64
[81] Fix | Delete
#undef LONG64
[82] Fix | Delete
#undef ATOM
[83] Fix | Delete
#undef FreeResource
[84] Fix | Delete
#undef CreateWindowA
[85] Fix | Delete
[86] Fix | Delete
/*
[87] Fix | Delete
* Older version of this header used to name the windows API bool type wBOOL,
[88] Fix | Delete
* rather than more standard name WINBOOL
[89] Fix | Delete
*/
[90] Fix | Delete
#define wBOOL WINBOOL
[91] Fix | Delete
[92] Fix | Delete
#ifdef RESOURCE_H
[93] Fix | Delete
# undef RT_FONT
[94] Fix | Delete
# undef RT_CURSOR
[95] Fix | Delete
# define RT_FONT ((RESTYPE)4)
[96] Fix | Delete
# define RT_CURSOR ((RESTYPE)5)
[97] Fix | Delete
#endif
[98] Fix | Delete
[99] Fix | Delete
#ifndef __CYGWIN__
[100] Fix | Delete
#define sleep(x) Sleep((x) * 1000)
[101] Fix | Delete
#endif
[102] Fix | Delete
[103] Fix | Delete
#if defined(WIN32) && (!defined(PATH_MAX) || PATH_MAX < 1024)
[104] Fix | Delete
# undef PATH_MAX
[105] Fix | Delete
# define PATH_MAX 1024
[106] Fix | Delete
#endif
[107] Fix | Delete
[108] Fix | Delete
#ifdef _XFree86Server
[109] Fix | Delete
# define XFree86Server
[110] Fix | Delete
# undef _XFree86Server
[111] Fix | Delete
#endif
[112] Fix | Delete
[113] Fix | Delete
[114] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function