Wrap include file in extern "C" { ... } for __cplusplus

svn path=/trunk/; revision=35521
This commit is contained in:
Stephen Fisher 2011-01-13 17:39:54 +00:00
parent a345695daf
commit 4c1b59c989
1 changed files with 9 additions and 1 deletions

View File

@ -25,6 +25,10 @@
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "file.h"
#include <epan/timestamp.h>
@ -34,4 +38,8 @@ extern capture_file cfile;
extern gboolean auto_scroll_live;
#endif
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GLOBALS_H__ */