Skip to content

Commit 8ddaa06

Browse files
Adding the extern C guard for the htslib headers in htslib_wrapper.hpp and removing those includes from the htslib_wrapper.cpp file
1 parent 85f84c0 commit 8ddaa06

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

htslib_wrapper.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
#include "smithlab_utils.hpp"
2626
#include "MappedRead.hpp"
2727

28-
#include <htslib/sam.h>
29-
#include <htslib/hts.h>
30-
3128
using std::string;
3229
using std::vector;
3330
using std::cerr;

htslib_wrapper.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
#include <vector>
2727
#include <fstream>
2828

29+
extern "C" {
2930
#include <htslib/sam.h>
3031
#include <htslib/hts.h>
32+
}
3133

3234
extern "C" {char check_htslib_wrapper();}
3335

0 commit comments

Comments
 (0)