From: Piotr Trojanek Date: Mon, 5 Sep 2022 11:17:15 +0000 (+0200) Subject: ada: Remove definition of MAXPATHLEN for ancient MinGW X-Git-Tag: basepoints/gcc-14~4356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af61dc3ffd7c184571bcf1d773d97716cfe6093a;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/ada/mingw32.h b/gcc/ada/mingw32.h index bf8577bb1d4f..a190d51076f5 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 - -#ifndef MAXPATHLEN -#define MAXPATHLEN MAX_PATH -#endif - #endif /* _MINGW32_H */