Skip to content

Commit

Permalink
Link to legacy_stdio only when MSVC (#777)
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries authored Jun 18, 2024
1 parent b8d14b7 commit 67b629d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rebound.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
*
*/
#define _NO_CRT_STDIO_INLINE // WIN32 to use _vsprintf_s
#if defined(_WIN32) && defined(_MSC_VER)
#pragma comment(lib, "legacy_stdio_definitions.lib")
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h> // for offsetof()
Expand Down

0 comments on commit 67b629d

Please sign in to comment.