Browse code

adapt to mulle-c11

Nat! authored on 28-08-2016 19:33:08
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+https://www.mulle-kybernetik.com/respositories/mulle-c11
... ...
@@ -9,26 +9,10 @@
9 9
 #ifndef mulle_align_h__
10 10
 #define mulle_align_h__
11 11
 
12
+#include <mulle_c11/mulle_c11.h>
12 13
 #include <stdint.h>
13 14
 #include <stddef.h>
14 15
 
15
-// ugliness creeps in due to windows
16
-#ifdef _WIN32
17
-# define alignof( x)  __alignof( x)
18
-#else
19
-# include <stdalign.h>
20
-#endif
21
-
22
-#if ! defined( __clang__) && ! defined( __GNUC__)
23
-# ifndef MULLE_CONST_VALUE_RETURN
24
-#  define MULLE_CONST_VALUE_RETURN   __attribute__(( const))
25
-# endif
26
-#else
27
-# ifndef MULLE_CONST_VALUE_RETURN
28
-#  define MULLE_CONST_VALUE_RETURN
29
-# endif
30
-#endif
31
-
32 16
 
33 17
 MULLE_CONST_VALUE_RETURN
34 18
 static inline uintptr_t   mulle_align( uintptr_t p, unsigned int alignment)