ossp-pkg/uuid/uuid_mac.h 1.1 -> 1.2
--- uuid_mac.h 2004/01/10 17:01:22 1.1
+++ uuid_mac.h 2004/01/13 19:48:01 1.2
@@ -32,6 +32,20 @@
#include <string.h> /* size_t */
+#define MAC_PREFIX uuid_
+
+/* embedding support */
+#ifdef MAC_PREFIX
+#if defined(__STDC__) || defined(__cplusplus)
+#define __MAC_CONCAT(x,y) x ## y
+#define MAC_CONCAT(x,y) __MAC_CONCAT(x,y)
+#else
+#define __MAC_CONCAT(x) x
+#define MAC_CONCAT(x,y) __MAC_CONCAT(x)y
+#endif
+#define mac_address MAC_CONCAT(MAC_PREFIX,mac_create)
+#endif
+
#define MAC_LEN 6
extern int mac_address(unsigned char *data_ptr, size_t data_len);
|
|