LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bcc-check_int128.patch of Package bcc (Project home:ndas:branches:Base:System)

Index: bcc-0.4.0/src/cc/frontends/b/type_helper.h
===================================================================
--- bcc-0.4.0.orig/src/cc/frontends/b/type_helper.h
+++ bcc-0.4.0/src/cc/frontends/b/type_helper.h
@@ -36,7 +36,9 @@ static inline size_t enum_to_size(const
     case UINT16_T: return sizeof(uint16_t);
     case UINT32_T: return sizeof(uint32_t);
     case UINT64_T: return sizeof(uint64_t);
+#ifdef __SIZEOF_INT128__
     case UINT128_T: return sizeof(__uint128_t);
+#endif
     default:
       return 0;
   }