projects
/
rtos
/
tinyara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72fce7
)
fix compilation warning on include
author
sunghan
<sh924.chang@samsung.com>
Mon, 27 Mar 2017 11:09:56 +0000
(20:09 +0900)
committer
sunghan
<sh924.chang@samsung.com>
Mon, 27 Mar 2017 11:09:56 +0000
(20:09 +0900)
check whether it is defined or not, because __WORDSIZE can be undefined.
os/include/inttypes.h
patch
|
blob
|
history
diff --git
a/os/include/inttypes.h
b/os/include/inttypes.h
index
bfb531c
..
9873d6d
100644
(file)
--- a/
os/include/inttypes.h
+++ b/
os/include/inttypes.h
@@
-226,7
+226,7
@@
intmax_t wcstoimax(const wchar_t *, wchar_t **, int);
*/
uintmax_t wcstoumax(const wchar_t *, wchar_t **, int);
-#if __WORDSIZE == 64
+#if
defined(__WORDSIZE) &&
__WORDSIZE == 64
#define __PRI64_PREFIX "l"
#define __PRIPTR_PREFIX "l"
#else