Skip to content

Commit

Permalink
BUG: Fix public statement for YEAR.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Dec 2, 2023
1 parent fcd98b4 commit a73f718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srcgen/utilities.f90
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ subroutine write_all_constants(fcodata, ffortran, fcheader, fpython, fcpython, p
end do

! fortran
write(ffortran, "(A,/)") 'integer(c_int), protected, bind(C,name="YEAR") :: YEAR = ' // props%year
write(ffortran, "(A,/)") 'integer(c_int), protected, public, bind(C,name="YEAR") :: YEAR = ' // props%year
! C Code
write(fcheader, "(A,/)") "ADD_IMPORT extern const int YEAR;"
! python
Expand Down

0 comments on commit a73f718

Please sign in to comment.