Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion src/rebound.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,24 @@
*
*/


#ifndef _MAIN_H
#define _MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __cplusplus
#if defined(__GNUC__)
#define restrict __restrict__
#elif defined(__clang__)
#define restrict __restrict
#elif defined(_MSC_VER)
#define restrict __restrict
#endif
#endif

#ifdef _WIN64
#define _LP64
#endif
Expand Down Expand Up @@ -1440,4 +1455,8 @@ DLLEXPORT void reb_whfast_interaction_step(struct reb_simulation* const r, const
DLLEXPORT void reb_whfast_jump_step(const struct reb_simulation* const r, const double _dt); ///< Internal function
DLLEXPORT void reb_whfast_kepler_step(const struct reb_simulation* const r, const double _dt); ///< Internal function
DLLEXPORT void reb_whfast_com_step(const struct reb_simulation* const r, const double _dt); ///< Internal function
#endif // _MAIN_H

#ifdef __cplusplus
}
#endif
#endif // _MAIN_H
Loading