diff --git a/gphoto2/gphoto2.h b/gphoto2/gphoto2.h index bc78f6ab5..ac95a835a 100644 --- a/gphoto2/gphoto2.h +++ b/gphoto2/gphoto2.h @@ -38,9 +38,10 @@ extern "C" { #endif #ifdef WIN32 -#undef CAMLIBS +#ifndef CAMLIBS #define CAMLIBS "." #endif +#endif #include #include diff --git a/libgphoto2_port/gphoto2/gphoto2-port-portability.h b/libgphoto2_port/gphoto2/gphoto2-port-portability.h index 2869e76ae..3d06efb54 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-portability.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-portability.h @@ -37,10 +37,9 @@ # include # include -# ifdef IOLIBS -# undef IOLIBS +# ifndef IOLIBS +# define IOLIBS "." # endif -# define IOLIBS "." # define strcasecmp _stricmp # ifndef snprintf # define snprintf _snprintf