Skip to content

Commit

Permalink
remove extern 'c' declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
elgiano committed Jun 26, 2023
1 parent 0027f76 commit a388e5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/NNModel/cpp/NNModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include <cstdio>
#include <fstream>
#include <ostream>

#include "SC_InterfaceTable.h"
extern "C" InterfaceTable* ft;

extern InterfaceTable* ft;

namespace NN {

Expand Down
4 changes: 2 additions & 2 deletions plugins/NNModel/cpp/NNModelCmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include "SC_InterfaceTable.h"
#include "SC_PlugIn.hpp"

extern "C" InterfaceTable* ft;
extern "C" NN::NNModelRegistry gModels;
extern InterfaceTable* ft;
extern NN::NNModelRegistry gModels;

inline char* copyStrToBuf(char** buf, const char* str) {
char* res = strcpy(*buf, str); *buf += strlen(str) + 1;
Expand Down

0 comments on commit a388e5d

Please sign in to comment.