]> gcc.gnu.org Git - gcc.git/commitdiff
ada: Remove definition of MAXPATHLEN for ancient MinGW
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 5 Sep 2022 11:17:15 +0000 (13:17 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 26 Sep 2022 09:02:29 +0000 (11:02 +0200)
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.

gcc/ada/mingw32.h

index bf8577bb1d4f9e95af4ae72014cfd65125f1d21f..a190d51076f56d3154e0833208176ce31811affc 100644 (file)
@@ -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 */
This page took 0.064593 seconds and 5 git commands to generate.