Skip to content

Commit f28923c

Browse files
committed
fixed an issue regarding defining global variables in C header files: we should have defined rds_rough_col_type_t as a type rather than a global variable. thanks @姜大炮.
1 parent b8d1f04 commit f28923c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resty_dbd_stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
(sizeof(rds_content_type) - 1)
1212

1313

14-
enum {
14+
typedef enum {
1515
rds_rough_col_type_int = 0 << 14,
1616
rds_rough_col_type_float = 1 << 14,
1717
rds_rough_col_type_str = 2 << 14,

0 commit comments

Comments
 (0)