Skip to content

Commit 719aaa3

Browse files
committed
some fixes for c<->cpp
1 parent 3e84f77 commit 719aaa3

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/amuse/community/arepo/interface.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
#include <cstdio>
2+
#include <cstring>
3+
14
#ifndef NOMPI
25
#include <mpi.h>
36
#endif
47

8+
#include "interface.h"
59
#include "worker_code.h"
610

7-
811
// general interface functions:
912

13+
using namespace std;
14+
1015
void set_default_parameters(){
1116
// Relevant files
1217
strcpy(All.InitCondFile, "./snap_010");
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#ifdef __cplusplus
22
extern "C" {
3+
#define ___cplusplus
4+
#undef __cplusplus
35
#endif
46

57
#include "src/main/allvars.h"
68
#include "src/main/proto.h"
79

8-
#ifdef __cplusplus
10+
#ifdef ___cplusplus
911
}
12+
#define __cplusplus
1013
#endif

0 commit comments

Comments
 (0)