aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-09-05 13:17:15 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-09-26 11:02:29 +0200
commitaf61dc3ffd7c184571bcf1d773d97716cfe6093a (patch)
tree64240377cbd7625a9cfc68d2d5cbe73c2a7ca524 /gcc
parent09b91bbcddd4900d433ea72f08dd11719bceaa58 (diff)
downloadgcc-af61dc3ffd7c184571bcf1d773d97716cfe6093a.zip
gcc-af61dc3ffd7c184571bcf1d773d97716cfe6093a.tar.gz
gcc-af61dc3ffd7c184571bcf1d773d97716cfe6093a.tar.bz2
ada: Remove definition of MAXPATHLEN for ancient MinGW
Modern MinGW defines MAXPATHLEN in sys/param.h, so better to use it directly. gcc/ada/ * mingw32.h: Remove condition definition of MAXPATHLEN; the include directive for stdlib.h was most likely intended to provide the MAX_PATH.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/mingw32.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/ada/mingw32.h b/gcc/ada/mingw32.h
index bf8577b..a190d51 100644
--- a/gcc/ada/mingw32.h
+++ b/gcc/ada/mingw32.h
@@ -99,10 +99,4 @@ extern UINT __gnat_current_ccs_encoding;
#define WS2S(str,wstr,len) strncpy(str,wstr,len)
#endif
-#include <stdlib.h>
-
-#ifndef MAXPATHLEN
-#define MAXPATHLEN MAX_PATH
-#endif
-
#endif /* _MINGW32_H */