diff --git a/Codec/decoder.c b/Codec/decoder.c index 7c7eb7c..39e5b8b 100644 --- a/Codec/decoder.c +++ b/Codec/decoder.c @@ -39,6 +39,7 @@ #ifdef _WIN32 #include +#define PATH_MAX MAX_PATH #endif #include diff --git a/Codec/demosaicframes.c b/Codec/demosaicframes.c index cc47909..de5bae2 100644 --- a/Codec/demosaicframes.c +++ b/Codec/demosaicframes.c @@ -5022,7 +5022,7 @@ float *LoadCube64_3DLUT(DECODER *decoder, CFHDDATA *cfhddata, int *lutsize) bool useLUT = false; CFLook_Header CFLKhdr; char crcname[256]; - FILE *fp; + FILE *fp = NULL; int err = 0; if (cfhddata->user_look_CRC != 0 && decoder) diff --git a/Codec/encoder.c b/Codec/encoder.c index d69c392..01ba52e 100644 --- a/Codec/encoder.c +++ b/Codec/encoder.c @@ -25,6 +25,7 @@ #ifdef _WIN32 #include +#define PATH_MAX MAX_PATH #elif __APPLE__ #include #include "macdefs.h" diff --git a/Codec/image.c b/Codec/image.c index b6efd90..dc08dc4 100644 --- a/Codec/image.c +++ b/Codec/image.c @@ -46,6 +46,10 @@ #include "macdefs.h" #endif +#if _WIN32 +#define PATH_MAX MAX_PATH +#endif + #if !defined(_WIN32) #define min(x,y) (((x) < (y)) ? (x) : (y)) #define max(x,y) (((x) > (y)) ? (x) : (y)) diff --git a/Codec/wavelet.c b/Codec/wavelet.c index 3bbab25..a9bf879 100644 --- a/Codec/wavelet.c +++ b/Codec/wavelet.c @@ -24,6 +24,7 @@ #ifdef _WIN32 #include +#define PATH_MAX MAX_PATH #elif __APPLE__ #include "macdefs.h" #endif