Skip to content

Commit 24bcf7f

Browse files
committed
Don't include C++ headers in extern C
1 parent 99b3c03 commit 24bcf7f

File tree

1 file changed

+4
-4
lines changed
  • include/leveldb

1 file changed

+4
-4
lines changed

include/leveldb/c.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@
4040
#ifndef STORAGE_LEVELDB_INCLUDE_C_H_
4141
#define STORAGE_LEVELDB_INCLUDE_C_H_
4242

43-
#ifdef __cplusplus
44-
extern "C" {
45-
#endif
46-
4743
#include <stdarg.h>
4844
#include <stddef.h>
4945
#include <stdint.h>
5046

5147
#include "leveldb/export.h"
5248

49+
#ifdef __cplusplus
50+
extern "C" {
51+
#endif
52+
5353
/* Exported types */
5454

5555
typedef struct leveldb_t leveldb_t;

0 commit comments

Comments
 (0)