Skip to content

Commit

Permalink
Different strategy for definitions check
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Jul 10, 2023
1 parent d23d576 commit e661d1c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions include/clap/private/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
# endif
#endif

#if defined(__cplusplus)
# if MSVC
# define CLAP_CPLUSPLUS _MSVC_LANG
# else
# define CLAP_CPLUSPLUS __cplusplus
# endif
#if defined(_MSVC_LANG)
# define CLAP_CPLUSPLUS _MSVC_LANG
#elif defined(__cplusplus)
# define CLAP_CPLUSPLUS __cplusplus
#endif

#if defined(CLAP_CPLUSPLUS) && CLAP_CPLUSPLUS >= 201103L
Expand Down

0 comments on commit e661d1c

Please sign in to comment.