diff --git a/src/hammer.h b/src/hammer.h
index 6e034987f7ca2bb91beb2f3dcf080c8dac25c82b..cbbf10748acd1e4d77ea5942788894a6f66c783b 100644
--- a/src/hammer.h
+++ b/src/hammer.h
@@ -30,7 +30,7 @@ typedef int bool;
 
 typedef struct HParseState_ HParseState;
 
-typedef enum token_type {
+typedef enum HTokenType_ {
   TT_NONE,
   TT_BYTES,
   TT_SINT,
@@ -39,7 +39,7 @@ typedef enum token_type {
   TT_USER = 64,
   TT_ERR,
   TT_MAX
-} token_type_t;
+} HTokenType;
 
 typedef struct parsed_token parsed_token_t;
 
@@ -51,7 +51,7 @@ typedef struct counted_array {
 } counted_array_t;
 
 typedef struct parsed_token {
-  token_type_t token_type;
+  HTokenType token_type;
   union {
     struct {
       const uint8_t *token;