Skip to content

Commit 6cdb408

Browse files
Fix multiple definition of fp1
Related: #75 Signed-off-by: ChinhPham <chinhpham.204719@gmail.com>
1 parent c0f9da6 commit 6cdb408

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/include/fp1_global.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
#ifndef FP1_GLOBAL_H
3+
#define FP1_GLOBAL_H
4+
5+
#include <stdio.h>
6+
7+
extern FILE *fp1;
8+
9+
#endif
10+

src/include/log_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include <pthread.h>
88
#include <stdlib.h>
99
#include <stdio.h>
10+
#include "fp1_global.h"
1011

11-
FILE *fp1;
1212

1313
#ifdef FILEDEBUG
1414
#define LOG_DEBUG(msg, ...) { \
@@ -110,4 +110,4 @@ FILE *fp1;
110110
}
111111

112112

113-
#endif
113+
#endif

0 commit comments

Comments
 (0)