diff --git a/pdfio-private.h b/pdfio-private.h index 55bf7e6..ca8968a 100644 --- a/pdfio-private.h +++ b/pdfio-private.h @@ -10,7 +10,7 @@ #ifndef PDFIO_PRIVATE_H # define PDFIO_PRIVATE_H # ifdef _WIN32 -# define _CRT_SECURE_NO_WARNINGS // Disable bogus VS warnings/errors... +# define _CRT_SECURE_NO_WARNINGS 1 // Disable bogus VS warnings/errors... # endif // _WIN32 # include "pdfio.h" # include diff --git a/test.h b/test.h index 7b30c38..bee522e 100644 --- a/test.h +++ b/test.h @@ -33,6 +33,7 @@ # include # include # if _WIN32 +# include # define isatty(f) _isatty(f) # else # include diff --git a/testpdfio.c b/testpdfio.c index 19fed4b..39ff8f1 100644 --- a/testpdfio.c +++ b/testpdfio.c @@ -1,7 +1,7 @@ // // Test program for PDFio. // -// Copyright © 2021-2024 by Michael R Sweet. +// Copyright © 2021-2025 by Michael R Sweet. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. @@ -13,9 +13,9 @@ // ./testpdfio [--verbose] FILENAME [OBJECT-NUMBER] [FILENAME [OBJECT-NUMBER]] ... // -#include "test.h" #include "pdfio-private.h" #include "pdfio-content.h" +#include "test.h" #include #include #ifndef M_PI