fix compilation warning on include
authorsunghan <sh924.chang@samsung.com>
Mon, 27 Mar 2017 11:09:56 +0000 (20:09 +0900)
committersunghan <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

index bfb531c..9873d6d 100644 (file)
@@ -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