aboutsummaryrefslogtreecommitdiff
path: root/winsup/w32api/include/windowsx.h
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2000-11-01 00:37:23 +0000
committerEarnie Boyd <earnie@users.sf.net>2000-11-01 00:37:23 +0000
commitbaf428f0d58567f532f9085f417f7d799a3d038d (patch)
treef53e26c6538f422894f3b5c8caf5973177d5e140 /winsup/w32api/include/windowsx.h
parentb12796a06d220e56474d2b28158fda9a193d9f37 (diff)
downloadnewlib-baf428f0d58567f532f9085f417f7d799a3d038d.zip
newlib-baf428f0d58567f532f9085f417f7d799a3d038d.tar.gz
newlib-baf428f0d58567f532f9085f417f7d799a3d038d.tar.bz2
* include/basetyps.h: add comment for GUID_DEFINED
* include/lm.h: add includes for lmerr.h and lmserver.h * include/lmcons.h: add W2K typedefs LMSTR, LMCSTR * include/lmerr.h: add error codes * include/lmserver.h: replace LPTSTR with LPWSTR, LPTCSTR with LPWCSTR in structures and prototypes * include/lmshare.h: ditto * include/lmuse.h: ditto * include/lmstats.h: ditto * include/oleauto.h: add function prototype SystemTimeToVariantTime * include/winbase.h: change first argument of CommConfigDialog to const * include/windowsx.h: add macros defining FAR versions of mem and string functions for porting from Win16 code * include/winioctl.h: added IOCTL_STORAGE defines * include/winnetwk.h: added WNNC_NET flags * include/winnt.h: add include of <basetsd.h>; add structs; add pointer typedefs for TOKEN structs * include/winsock.h: add guard around BSD-ish typedefs * include/wtypes.h: new VARENUM enums, new WIN32/WIN64 compat. macros * include/basetsd.h: new file * include/raserror.h: ditto * include/rassapi.h: ditto * include/ras.h: ditto comment from Earnie: replaced original ras.h contribution with Danny's contribution as it is more complete. * include/rpcndr.h: add default definition for __RPCNDR_H_VERSION__
Diffstat (limited to 'winsup/w32api/include/windowsx.h')
-rw-r--r--winsup/w32api/include/windowsx.h43
1 files changed, 39 insertions, 4 deletions
diff --git a/winsup/w32api/include/windowsx.h b/winsup/w32api/include/windowsx.h
index 8e6e44c..37a439a 100644
--- a/winsup/w32api/include/windowsx.h
+++ b/winsup/w32api/include/windowsx.h
@@ -497,9 +497,44 @@
#define SubtractRgn(hrgnResult,hrgnA,hrgnB) CombineRgn(hrgnResult,hrgnA,hrgnB,RGN_DIFF)
#define UnionRgn(hrgnResult,hrgnA,hrgnB) CombineRgn(hrgnResult,hrgnA,hrgnB,RGN_OR)
#define XorRgn(hrgnResult,hrgnA,hrgnB) CombineRgn(hrgnResult,hrgnA,hrgnB,RGN_XOR)
-#define _fmemcpy memcpy
-#define _fmemmove memmove
-#define _fmemset memset
-#define _fmemcmp memcmp
+
+/* FAR versions of mem and string functions for porting from old code*/
+#define _ffree free
+#define _fmalloc malloc
+#define _frealloc realloc
+#define _fmsize _msize
+
+#define _fmemcpy memcpy
+#define _fmemmove memmove
+#define _fmemset memset
+#define _fmemcmp memcmp
+#define _fmemchr memchr
+#define _fmemccpy _memccpy
+#define _fmemicmp _memicmp
+
+#define _fstrcat strcat
+#define _fstrchr strchr
+#define _fstrcmp strcmp
+#define _fstrcpy strcpy
+#define _fstrcspn strcspn
+#define _fstrdup _strdup
+#define _fstricmp _stricmp
+#define _fstrlen strlen
+#define _fstrlwr _strlwr
+#define _fstrncat strncat
+#define _fstrncmp strncmp
+#define _fstrncpy strncpy
+#define _fstrnicmp _strnicmp
+#define _fstrnset _strnset
+#define _fstrpbrk strpbrk
+#define _fstrrchr strrchr
+#define _fstrrev _strrev
+#define _fstrset _strset
+#define _fstrspn strspn
+#define _fstrstr strstr
+#define _fstrtok strtok
+#define _fstrupr _strupr
+
#define hmemcpy MoveMemory
+
#endif