diff options
author | Aaron Durbin <adurbin@chromium.org> | 2016-11-08 09:42:13 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-11-09 16:51:52 +0100 |
commit | 5577a475fcb22671aae2b483a1372b677c016cb9 (patch) | |
tree | df80920ec102c98af6946356fa2e24514942ec28 /src/include | |
parent | e19c80b7ee2d6023f536b12f9576d6e5fd030f6e (diff) |
string.h: only guard snprintf() with __ROMCC__
There's no need to keep the snprintf() declaration hidden
for early stages. romcc is the entity that has issues. Therefore,
be explicit about when to guard snprintf().
BUG=chromium:663243
Change-Id: Ib4d0879e52c3f73c6ca61ab75f672f0003fca71f
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/17289
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/string.h b/src/include/string.h index 5b2486ae3c..f2777a9e49 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -15,7 +15,7 @@ void *memmove(void *dest, const void *src, size_t n); void *memset(void *s, int c, size_t n); int memcmp(const void *s1, const void *s2, size_t n); void *memchr(const void *s, int c, size_t n); -#if !defined(__PRE_RAM__) +#if !defined(__ROMCC__) int snprintf(char * buf, size_t size, const char *fmt, ...); #endif |