Skip to content

Commit

Permalink
Fix redefinition of PATH_MAX macro with mingw
Browse files Browse the repository at this point in the history
This fixes the following warning with mingw gcc

blosc-private.h:187: warning: "PATH_MAX" redefined
  187 | #define PATH_MAX MAX_PATH
      |
limits.h:20: note: this is the location of the previous definition
   20 | #define PATH_MAX        260
      |
  • Loading branch information
Biswa96 authored and FrancescAlted committed Aug 19, 2023
1 parent d190856 commit 1c5441f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blosc/blosc-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ extern int g_ntuners;

#if defined(_WIN32)
#include <windows.h>
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
#endif
#define RTLD_LAZY 0x000
#define popen _popen
#define pclose _pclose
Expand Down

0 comments on commit 1c5441f

Please sign in to comment.