]> rtime.felk.cvut.cz Git - ulut.git/commitdiff
uLUt: added definition for weak attribute.
authorppisa <ppisa>
Thu, 29 Oct 2009 18:54:52 +0000 (18:54 +0000)
committerppisa <ppisa>
Thu, 29 Oct 2009 18:54:52 +0000 (18:54 +0000)
ulut/ul_utdefs.h

index 38d08f87666e1aaf1b9ca51d8ceb98ffb6bd55ce..d0ff65363177b461bd02b53174132f8a2b4d8e7a 100644 (file)
@@ -80,6 +80,8 @@ extern "C" {
   __attribute__((destructor))
 #define        UL_ATTR_ALWAYS_INLINE                   \
   __attribute__((always_inline))
+#define        UL_ATTR_WEAK                            \
+  __attribute__((weak))
 #endif  /*UL_ATTR_UNUSED*/
 #else  /* !__GNUC__ */
 #ifndef UL_ATTR_UNUSED
@@ -92,6 +94,7 @@ extern "C" {
 #define        UL_ATTR_CONSTRUCTOR
 #define        UL_ATTR_DESCRUCTOR
 #define        UL_ATTR_ALWAYS_INLINE
+#define UL_ATTR_WEAK
 #endif  /*UL_ATTR_UNUSED*/
 #endif /* !__GNUC__ */