Skip to content

Commit

Permalink
build: preprocessor build for later cpp versions adapted
Browse files Browse the repository at this point in the history
  • Loading branch information
zerothi committed Jun 9, 2015
1 parent 0d9c228 commit 9aa2932
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ include $(ARCH_MAKE)
AR ?= ar
ARFLAGS ?= cru
RANLIB ?= ranlib
PP ?= cpp -E -P -C

# Sadly the preprocessor for fortran is a bit of a pain.
# -C is needed to disregard C-comments (the operator // is a comment!?!)
# -nostdinc is needed to not include standard includes (which are C comments)
# -E only preprocess, do not try and compile
# -P do not add line markers
PP ?= cpp -E -P -C -nostdinc

VPATH ?= $(shell pwd)

Expand Down
2 changes: 1 addition & 1 deletion dictionary_pp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module dictionary
public :: operator(.IN.)

! check whether key not exists in dictionary
!> Returns .not. ('key. .in. dict)
!> Returns .not. ('key' .in. dict)
interface operator( .NIN. )
module procedure nin
end interface operator( .NIN. )
Expand Down

0 comments on commit 9aa2932

Please sign in to comment.