Skip to content

Commit

Permalink
platform.h: set up macros for detecting MSVS 2019 and 2022 (AcademySo…
Browse files Browse the repository at this point in the history
  • Loading branch information
lgritz committed Jan 6, 2023
1 parent e82040a commit 400fb3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/include/OpenImageIO/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@
# define OIIO_MSVS_BEFORE_2015 (_MSC_VER < 1900)
# define OIIO_MSVS_AT_LEAST_2017 (_MSC_VER >= 1910)
# define OIIO_MSVS_BEFORE_2017 (_MSC_VER < 1910)
# define OIIO_MSVS_AT_LEAST_2019 (_MSC_VER >= 1920)
# define OIIO_MSVS_BEFORE_2019 (_MSC_VER < 1920)
# define OIIO_MSVS_AT_LEAST_2022 (_MSC_VER >= 1930)
# define OIIO_MSVS_BEFORE_2022 (_MSC_VER < 1930)
# if OIIO_MSVS_BEFORE_2017
# error "This version of OIIO is meant to work only with Visual Studio 2017 or later"
# endif
Expand All @@ -241,6 +245,10 @@
# define OIIO_MSVS_BEFORE_2015 0
# define OIIO_MSVS_AT_LEAST_2017 0
# define OIIO_MSVS_BEFORE_2017 0
# define OIIO_MSVS_AT_LEAST_2019 0
# define OIIO_MSVS_BEFORE_2019 0
# define OIIO_MSVS_AT_LEAST_2022 0
# define OIIO_MSVS_BEFORE_2022 0
#endif


Expand Down

0 comments on commit 400fb3d

Please sign in to comment.