Skip to content

Commit c8771ad

Browse files
author
Joshua Haberman
committed
Add include guards and 'extern "C"' for C++.
1 parent ed06ff5 commit c8771ad

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vtparse.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
* This code is in the public domain.
77
*/
88

9+
#ifndef VTPARSE_DOT_H
10+
#define VTPARSE_DOT_H
11+
12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
916
#include "vtparse_table.h"
1017

1118
#define MAX_INTERMEDIATE_CHARS 2
@@ -30,3 +37,8 @@ typedef struct vtparse {
3037
void vtparse_init(vtparse_t *parser, vtparse_callback_t cb);
3138
void vtparse(vtparse_t *parser, unsigned char *data, int len);
3239

40+
#ifdef __cplusplus
41+
}
42+
#endif
43+
44+
#endif

0 commit comments

Comments
 (0)