Skip to content

Commit 1eb0cb9

Browse files
authored
Merge pull request #92 from bonachea/lfortran-assert-msg
Update CPP_STRINGIFY_SOURCE for LFortran
2 parents 0551989 + be72d9a commit 1eb0cb9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/assert_macros.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
! Deal with stringification issues:
1414
! https://gcc.gnu.org/legacy-ml/fortran/2009-06/msg00131.html
1515
#ifndef CPP_STRINGIFY_SOURCE
16-
# if defined(__GFORTRAN__) || defined(_CRAYFTN) || defined(NAGFOR) || defined(__LFORTRAN__)
16+
# if defined(__GFORTRAN__) || defined(_CRAYFTN) || defined(NAGFOR) || \
17+
(defined(__LFORTRAN__) && __LFORTRAN_MAJOR__ == 0 && __LFORTRAN_MINOR__ < 60)
1718
# define CPP_STRINGIFY_SOURCE(x) "x"
1819
# else
1920
# define CPP_STRINGIFY_SOURCE(x) #x

0 commit comments

Comments
 (0)