Add ports to the source, filter and sink component interfaces
[babeltrace.git] / include / babeltrace / compat / string.h
index 7a574e679d207f4a03549e9f2ddce1751c2ae210..2aa7bc3ca9328b85262cbed714f587c8e9eca76b 100644 (file)
 #include <string.h>
 #include <stdlib.h>
 
-#if !defined(__linux__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
+#if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
 
 /* XSI-compliant strerror_r */
 static inline
-int compat_strerror_r(int errnum, char *buf, size_t buflen)
+int bt_strerror_r(int errnum, char *buf, size_t buflen)
 {
        return strerror_r(errnum, buf, buflen);
 }
@@ -39,7 +39,7 @@ int compat_strerror_r(int errnum, char *buf, size_t buflen)
 
 /* GNU-compliant strerror_r */
 static inline
-int compat_strerror_r(int errnum, char *buf, size_t buflen)
+int bt_strerror_r(int errnum, char *buf, size_t buflen)
 {
        char *retbuf;
 
This page took 0.023435 seconds and 4 git commands to generate.