X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/913df6f2e0ab502732b271624c95af807d42007c..7c4eef7a75398aab1285e3ad2971c59ea3130293:/src/common/unzip.c diff --git a/src/common/unzip.c b/src/common/unzip.c index 5e4a178bfa..54ced0c33b 100644 --- a/src/common/unzip.c +++ b/src/common/unzip.c @@ -4,6 +4,9 @@ Read unzip.h for more info */ +#if !defined(__VISAGECPP__) +# pragma warning(disable:4001) /* non standard extension used: single line comment */ +#endif #include "wx/setup.h" #if wxUSE_ZLIB && wxUSE_ZIPSTREAM @@ -12,7 +15,13 @@ #include #include #include "zlib.h" + +/* Not the right solution (paths in makefiles) but... */ +#ifdef __BORLANDC__ +#include "../common/unzip.h" +#else #include "unzip.h" +#endif #ifdef STDC # include @@ -129,7 +138,7 @@ typedef struct } unz_s; #if defined (__VISAGECPP__) -// VA always requires prototypes +/* VA always requires prototypes */ int unzlocal_CheckCurrentFileCoherencyHeader (unz_s*, uInt*, uLong*, uInt*); #endif @@ -1301,7 +1310,7 @@ extern int ZEXPORT unzGetGlobalComment (file, szComment, uSizeBuf) #else -// the file shouldn't be empty, som compilers don't like it +/* the file shouldn't be empty, som compilers don't like it */ static const int dummyVariableInUnzip = 17; -#endif // wxUSE_ZLIB && wxUSE_ZIPSTREAM +#endif /* wxUSE_ZLIB && wxUSE_ZIPSTREAM */