1 | /* |
1 | /* |
2 | * libecb |
2 | * libecb - http://software.schmorp.de/pkg/libecb |
3 | * |
3 | * |
4 | * Copyright (©) 2009-2011 Marc Alexander Lehmann |
4 | * Copyright (©) 2009-2011 Marc Alexander Lehmann |
5 | * Copyright (©) 2011 Emanuele Giaquinta |
5 | * Copyright (©) 2011 Emanuele Giaquinta |
6 | * All rights reserved. |
6 | * All rights reserved. |
7 | * |
7 | * |
… | |
… | |
150 | |
150 | |
151 | #if ECB_GCC_VERSION(4,5) |
151 | #if ECB_GCC_VERSION(4,5) |
152 | # define ecb_unreachable() __builtin_unreachable () |
152 | # define ecb_unreachable() __builtin_unreachable () |
153 | #else |
153 | #else |
154 | /* this seems to work fine, but gcc always emits a warning for it :/ */ |
154 | /* this seems to work fine, but gcc always emits a warning for it :/ */ |
155 | ECB_HEADER_INLINE void ecb_unreachable (void) ecb_attribute ((noreturn)); |
155 | ECB_HEADER_INLINE void ecb_unreachable (void) ecb_noreturn; |
156 | ECB_HEADER_INLINE void ecb_unreachable (void) { } |
156 | ECB_HEADER_INLINE void ecb_unreachable (void) { } |
157 | #endif |
157 | #endif |
158 | |
158 | |
159 | ECB_HEADER_INLINE unsigned char ecb_byteorder_helper () ecb_const; |
159 | ECB_HEADER_INLINE unsigned char ecb_byteorder_helper () ecb_const; |
160 | ECB_HEADER_INLINE unsigned char |
160 | ECB_HEADER_INLINE unsigned char |