Skip to content

Commit

Permalink
add __RIOT__ platform identifier
Browse files Browse the repository at this point in the history
This makes it possible to check whether the target code is compiled for the RIOT platform
  • Loading branch information
benpicco committed Apr 14, 2015
1 parent 1af6126 commit 45fc47b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.cflags
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Add a __RIOT__ define that makes it possible to identify the RIOT platform when conditional compilation for multiple platforms is needed
CFLAGS += -D__RIOT__

# Test if the input language was specified externally.
# Otherwise test if the compiler unterstands the "-std=gnu99" flag, and use it if so.
# Otherwise test if the compiler unterstands the "-std=c99" flag, and use it if so.
Expand Down

0 comments on commit 45fc47b

Please sign in to comment.