diff options
author | Hib Eris <hib@hiberis.nl> | 2010-07-02 14:45:15 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2010-07-12 23:18:39 +0100 |
commit | e3663a855a9c86f0a3988a7a50fa40d37d0ea069 (patch) | |
tree | f95ded2dfe20ef68cd3fcbb1ba4fb6585dd12354 /goo | |
parent | 7227c407d23a37f5d95e6c01cb7411be2f82ca85 (diff) |
Use MAX_PATH instead of _MAX_PATH everywhere
_MAX_PATH is compiler specific and not availble with the mingw compiler
in ansi mode. MAX_PATH is in the Windows api and thus always available
when windows.h is included.
Diffstat (limited to 'goo')
-rw-r--r-- | goo/gfile.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/goo/gfile.cc b/goo/gfile.cc index e8756305..ff23aae0 100644 --- a/goo/gfile.cc +++ b/goo/gfile.cc @@ -376,11 +376,11 @@ GooString *makePathAbsolute(GooString *path) { #elif defined(_WIN32) //---------- Win32 ---------- - char buf[_MAX_PATH]; + char buf[MAX_PATH]; char *fp; buf[0] = '\0'; - if (!GetFullPathName(path->getCString(), _MAX_PATH, buf, &fp)) { + if (!GetFullPathName(path->getCString(), MAX_PATH, buf, &fp)) { path->clear(); return path; } |