GraphicsMagick: jp2/src/libjasper/include/jasper/stdbool2.h _MS...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.35930.1672002597.1459.graphicsmagick-commit@lists.sourceforge.net>
changeset d4cced1541de in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=d4cced1541de
summary: jp2/src/libjasper/include/jasper/stdbool2.h  _MSC_VER must be less than or equal 1500

diffstat:

 jp2/src/libjasper/include/jasper/stdbool2.h |  4 +++-
 tiff/libtiff/stdbool2.h                     |  6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r a933423fa816 -r d4cced1541de jp2/src/libjasper/include/jasper/stdbool2.h
--- a/jp2/src/libjasper/include/jasper/stdbool2.h	Sun Dec 25 21:47:06 2022 +0100
+++ b/jp2/src/libjasper/include/jasper/stdbool2.h	Sun Dec 25 22:09:25 2022 +0100
@@ -2,9 +2,11 @@
 #define __STDBOOL2_H__
 
 
-#if defined(_MSC_VER) && _MSC_VER < 1500
+#if defined(_MSC_VER) && _MSC_VER <= 1500
  #ifndef __cplusplus
   #define bool int
+  #define false 0
+  #define true 1
  #endif
 #else
  #include <stdbool.h>
diff -r a933423fa816 -r d4cced1541de tiff/libtiff/stdbool2.h
--- a/tiff/libtiff/stdbool2.h	Sun Dec 25 21:47:06 2022 +0100
+++ b/tiff/libtiff/stdbool2.h	Sun Dec 25 22:09:25 2022 +0100
@@ -2,13 +2,15 @@
 #define __STDBOOL2_H__
 
 
-#if defined(_MSC_VER) && _MSC_VER < 1500
+#if defined(_MSC_VER) && _MSC_VER <= 1500
  #ifndef __cplusplus
   #define bool int
+  #define false 0
+  #define true 1
  #endif
 #else
  #include <stdbool.h>
 #endif
 
 
-#endif
\ No newline at end of file
+#endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.