Skip to content

Commit

Permalink
Add missing C++ include guards
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaut committed Oct 30, 2023
1 parent 1ef7a09 commit dfb5efc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Inc/loadelf.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <stdbool.h>
#include <capstone/capstone.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef unsigned long int symbolMemaddr;
typedef unsigned char *symbolMemptr;

Expand Down Expand Up @@ -128,4 +132,7 @@ bool symbolSetValid( struct symbol *p );

// ====================================================================================================

#ifdef __cplusplus
}
#endif
#endif
7 changes: 7 additions & 0 deletions Inc/readsource.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
#ifndef _READSOURCE_H_
#define _READSOURCE_H_

#ifdef __cplusplus
extern "C" {
#endif

// ====================================================================================================

char *readsourcefile( char *path, size_t *l );

// ====================================================================================================

#ifdef __cplusplus
}
#endif
#endif

0 comments on commit dfb5efc

Please sign in to comment.