Tracepoint API namespacing ust-endian
[lttng-ust.git] / src / common / elf.h
index 17f946768c376143b8b87be53cce8596c1bc5b2e..9a6b298482528340bee691654e5a61cb5ca79b3e 100644 (file)
@@ -74,7 +74,7 @@ struct lttng_ust_elf {
  * Determine native endianness in order to convert when reading an ELF
  * file if there is a mismatch.
  */
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if LTTNG_UST_BYTE_ORDER == LTTNG_UST_LITTLE_ENDIAN
 #define NATIVE_ELF_ENDIANNESS ELFDATA2LSB
 #else
 #define NATIVE_ELF_ENDIANNESS ELFDATA2MSB
@@ -100,13 +100,13 @@ struct lttng_ust_elf {
        do {                                    \
                switch (sizeof(x)) {            \
                case 8:                         \
-                       x = bswap_64(x);        \
+                       x = lttng_ust_bswap_64(x);      \
                        break;                  \
                case 4:                         \
-                       x = bswap_32(x);        \
+                       x = lttng_ust_bswap_32(x);      \
                        break;                  \
                case 2:                         \
-                       x = bswap_16(x);        \
+                       x = lttng_ust_bswap_16(x);      \
                        break;                  \
                case 1:                         \
                        break;                  \
This page took 0.024549 seconds and 4 git commands to generate.