2
0
forked from Ivasoft/DSView

Merge pull request #503 from vowstar/fix-zof

common/minizip/*: fix OF prototypes
This commit is contained in:
dreamsourcelabTAI
2022-06-16 16:34:30 +08:00
committed by GitHub
5 changed files with 16 additions and 0 deletions

View File

@@ -44,6 +44,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "zlib.h"
#include "of.h"
#if defined(USE_FILE32API)
#define fopen64 fopen

View File

@@ -13,6 +13,7 @@ extern "C" {
#ifndef _ZLIB_H
#include "zlib.h"
#include "of.h"
#endif
#include "unzip.h"

12
common/minizip/of.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef _OF_H
#define _OF_H
#ifndef OF /* function prototypes */
# ifdef STDC
# define OF(args) args
# else
# define OF(args) ()
# endif
#endif
#endif /* _OF_H */

View File

@@ -49,6 +49,7 @@ extern "C" {
#ifndef _ZLIB_H
#include "zlib.h"
#include "of.h"
#endif
#ifndef _ZLIBIOAPI_H

View File

@@ -48,6 +48,7 @@ extern "C" {
#ifndef _ZLIB_H
#include "zlib.h"
#include "of.h"
#endif
#ifndef _ZLIBIOAPI_H