Skip to content

Commit ef9cb47

Browse files
committed
fixed test failure caused by missing inline-function declarations on gcc5.
1 parent 831502c commit ef9cb47

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

libcob.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ extern "C" {
3737
#include <libcob/strings.h>
3838
#include <libcob/termio.h>
3939
#include <libcob/intrinsic.h>
40+
#include <libcob/codegen.h>
4041

4142
#ifdef __cplusplus
4243
}

libcob/numeric.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@
3030
/* Force symbol exports */
3131
#define COB_LIB_EXPIMP
3232

33+
#define COB_LIB_INCLUDE
3334
#include "libcob.h"
3435
#include "coblocal.h"
3536

36-
#define COB_LIB_INCLUDE
37-
#include "codegen.h"
38-
3937
#define DECIMAL_NAN -128
4038
#define DECIMAL_CHECK(d1,d2) \
4139
if (unlikely(d1->scale == DECIMAL_NAN || d2->scale == DECIMAL_NAN)) { \

0 commit comments

Comments
 (0)