mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-24 20:14:28 -04:00
common.h: define ZINT_IS_C89 as __STDC_VERSION__ not defined by MSVC
zintconfig.h: edit generator file zintconfig.h.in
This commit is contained in:
parent
102c2f3a69
commit
d0cfabba84
5 changed files with 20 additions and 17 deletions
|
@ -57,7 +57,7 @@ extern "C" {
|
|||
#define testutil_pclose(stream) _pclose(stream)
|
||||
#else
|
||||
#include <unistd.h>
|
||||
# if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199000L /* C89 */
|
||||
# if defined(ZINT_IS_C89)
|
||||
extern FILE *popen(const char *command, const char *type);
|
||||
extern int pclose(FILE *stream);
|
||||
# endif
|
||||
|
@ -101,7 +101,7 @@ typedef struct s_testFunction {
|
|||
void testRun(int argc, char *argv[], testFunction funcs[], int funcs_size);
|
||||
int testContinue(const testCtx *const p_ctx, const int i);
|
||||
|
||||
#if (defined(_MSC_VER) &&_MSC_VER == 1200) || (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199000L) /* VC6 or C89 */
|
||||
#if (defined(_MSC_VER) &&_MSC_VER == 1200) || defined(ZINT_IS_C89) /* VC6 or C89 */
|
||||
void assert_zero(int exp, const char *fmt, ...);
|
||||
void assert_nonzero(int exp, const char *fmt, ...);
|
||||
void assert_null(const void *exp, const char *fmt, ...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue