aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/uuid.h
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2007-01-28 20:25:38 +0000
committerNeil Conway <neilc@samurai.com>2007-01-28 20:25:38 +0000
commit74a1a2b8b16cd94d5046dfbe74f37d70a5347adc (patch)
tree3cca3ce321047cfcea793c77ed1d25665c42abce /src/include/utils/uuid.h
parentcd47d0f78141cb9898a640d0e598f59264c8911e (diff)
downloadpostgresql-74a1a2b8b16cd94d5046dfbe74f37d70a5347adc.tar.gz
postgresql-74a1a2b8b16cd94d5046dfbe74f37d70a5347adc.zip
Rename the uuid_t type to pg_uuid_t, to avoid a conflict with any
definitions of uuid_t that may be provided by the system headers. This should hopefully fix the Win32 build problems reported by Magnus.
Diffstat (limited to 'src/include/utils/uuid.h')
-rw-r--r--src/include/utils/uuid.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/utils/uuid.h b/src/include/utils/uuid.h
index 12cb00a0b71..4817939d528 100644
--- a/src/include/utils/uuid.h
+++ b/src/include/utils/uuid.h
@@ -1,11 +1,13 @@
/*-------------------------------------------------------------------------
*
* uuid.h
- * Header file for the "uuid" data type.
+ * Header file for the "uuid" ADT. In C, we use the name pg_uuid_t,
+ * to avoid conflicts with any uuid_t type that might be defined by
+ * the system headers.
*
* Copyright (c) 2007, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/utils/uuid.h,v 1.1 2007/01/28 16:16:54 neilc Exp $
+ * $PostgreSQL: pgsql/src/include/utils/uuid.h,v 1.2 2007/01/28 20:25:38 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -16,12 +18,12 @@
#define UUID_LEN 16
/* opaque struct; defined in uuid.c */
-typedef struct uuid_t uuid_t;
+typedef struct pg_uuid_t pg_uuid_t;
/* fmgr interface macros */
#define UUIDPGetDatum(X) PointerGetDatum(X)
#define PG_RETURN_UUID_P(X) return UUIDPGetDatum(X)
-#define DatumGetUUIDP(X) ((uuid_t *) DatumGetPointer(X))
+#define DatumGetUUIDP(X) ((pg_uuid_t *) DatumGetPointer(X))
#define PG_GETARG_UUID_P(X) DatumGetUUIDP(PG_GETARG_DATUM(X))
#endif /* UUID_H */