diff --git a/ch32v003fun/ch32v003fun.h b/ch32v003fun/ch32v003fun.h
index e450b326c7cf9d5215124d3033ca5c8f20238018..c97ec0c51da19519bc28a8ee0a429bf997be9192 100644
--- a/ch32v003fun/ch32v003fun.h
+++ b/ch32v003fun/ch32v003fun.h
@@ -355,8 +355,6 @@ typedef enum IRQn
 
 #endif
 
-#endif
-
 } IRQn_Type;
 
 #include <stdint.h>
@@ -6062,15 +6060,10 @@ with 00h to 64 bytes, otherwise the short packet is filled with 60 bytes of 0, a
 
 #ifdef __cplusplus
 }
+#endif
 
 #endif /* __CH32V00x_H */
 
-
-
-
-
-
-
 /*
  * This file contains the contents of various parts of the evt.
  *