Skip to content

Commit 2e4eab7

Browse files
committed
Use extern for __seed__ (#2 #8)
1 parent fa81a5a commit 2e4eab7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/cmd/opt.c

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include "cp/heur/ea/ea.h"
55
#include <sys/stat.h>
66

7+
unsigned long __seed__;
8+
79
struct cmd_args
810
{
911
const char *data_file;

src/op-solver.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extern "C"
5757
#define SOLVER_VERBOSITY_INFO 2
5858
#define SOLVER_VERBOSITY_DEBUG 3
5959

60-
unsigned long __seed__;
60+
extern unsigned long __seed__;
6161

6262
#ifndef SOLVER_MAXINT
6363
#define SOLVER_MAXINT ((int)(~(((unsigned)1) << ((8 * sizeof(int)) - 1))))

0 commit comments

Comments
 (0)