summaryrefslogtreecommitdiff
path: root/src/include/btmem.h
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-09-01 13:32:29 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-09-01 13:32:29 -0400
commita26c2670a679b768a97b2fafaaa575f3ac565043 (patch)
treedd3f9bb6306987b5fa4c73f0b24aae2f5c2b7721 /src/include/btmem.h
parent68e020c46b41282a263d56b0a206c804a6999416 (diff)
downloadmongo-a26c2670a679b768a97b2fafaaa575f3ac565043.tar.gz
Forward declarations of enumerated types is a gcc extension, we don't
need to do it anyway.
Diffstat (limited to 'src/include/btmem.h')
-rw-r--r--src/include/btmem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/btmem.h b/src/include/btmem.h
index 8352e09f342..00f056c5563 100644
--- a/src/include/btmem.h
+++ b/src/include/btmem.h
@@ -604,14 +604,14 @@ struct __wt_page {
* to the readers. If the evicting thread does not find a hazard pointer,
* the page is evicted.
*/
-enum __wt_page_state {
+typedef enum __wt_page_state {
WT_REF_DISK=0, /* Page is on disk */
WT_REF_DELETED, /* Page is on disk, but deleted */
WT_REF_LOCKED, /* Page locked for exclusive access */
WT_REF_MEM, /* Page is in cache and valid */
WT_REF_READING, /* Page being read */
WT_REF_SPLIT /* Page was split */
-};
+} WT_PAGE_STATE;
/*
* WT_PAGE_DELETED --