Skip to content

Commit fe34ae5

Browse files
committed
fixup macros that don't play well with c2rust
1 parent 7d00dee commit fe34ae5

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern "C" {
3636

3737
/* Define the inline directive when available */
3838
#if defined( __GNUC__ )&& !defined( __cplusplus )
39-
#define INLINE __inline__
39+
#define INLINE
4040
#else
4141
#define INLINE
4242
#endif

timer.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,12 @@
1616
/* CRON_SUPPORTED should be enabled when Zebra is compiled for
1717
a Unix system which supports the Cron daemon. */
1818

19-
#ifdef __linux__
20-
#define CRON_SUPPORTED
21-
#endif
22-
2319
/* GTC_SUPPORTED should be enabled when Zebra is compiled for
2420
Windows 95/98/NT and the compiler supports the function
2521
GetTickCount() and keeps the definition in <windows.h>. */
2622

2723
#include "porting.h"
2824

29-
#define GTC_SUPPORTED
30-
3125

3226

3327
#include <math.h>

0 commit comments

Comments
 (0)