small fixes

This commit is contained in:
lperron@google.com
2011-04-11 10:46:41 +00:00
parent 1ddcc668aa
commit a68f75b9c1
8 changed files with 16 additions and 17 deletions

View File

@@ -1,12 +1,12 @@
# Let's discover something about where we run
ifeq "$(SHELL)" "cmd.exe"
SYSTEM=win
SYSTEM=win
else
ifeq "$(SHELL)" "sh.exe"
SYSTEM=win
else
SYSTEM=unix
endif
ifeq "$(SHELL)" "sh.exe"
SYSTEM=win
else
SYSTEM=unix
endif
endif
# First, we include predefined variables

View File

@@ -435,4 +435,3 @@ objs/integer_solver_example.$O: examples/integer_solver_example.cc
integer_solver_example$E: $(LP_LIBS) $(BASE_LIBS) objs/integer_solver_example.$O
$(CCC) $(CFLAGS) $(LDFLAGS) objs/integer_solver_example.$O $(LP_LIBS) $(BASE_LIBS) $(LDLPDEPS) $(EXEOUT)integer_solver_example$E

View File

@@ -87,4 +87,3 @@ _pywraplp.$(SHAREDLIBEXT): objs/linear_solver_wrap.$O $(LP_LIBS) $(BASE_LIBS)
ifeq "$(SYSTEM)" "win"
copy _pywraplp.dll gen\\linear_solver\\_pywraplp.pyd
endif

View File

@@ -21,12 +21,12 @@ UNIX_GLPK_DIR=../glpk-4.45
# Linux jdk root
# first, determine 32 or 64 bits.
ifeq "$(SYSTEM)" "unix"
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
JDK_EXT=64
else
JDK_EXT=32
endif
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
JDK_EXT=64
else
JDK_EXT=32
endif
endif
LINUX_JDK_ROOT=/usr/local/buildtools/java/jdk-$(JDK_EXT)

View File

@@ -120,4 +120,4 @@ OBJOUT=-o$(SPACE)
EXEOUT=-o$(SPACE)
DEL=rm -f
S=/
CPSEP=:
CPSEP=:

View File

@@ -71,4 +71,3 @@ S=\\
CPSEP=;
DEL=del
JNILIBEXT=dll

View File

@@ -47,7 +47,7 @@ class BellmanFord {
const int node_count_;
const int start_node_;
scoped_ptr<ResultCallback2<int64, int, int> > graph_;
const int disconnected_distance_;
const int64 disconnected_distance_;
scoped_array<int64> distance_;
scoped_array<int> predecessor_;
};

View File

@@ -17,6 +17,8 @@
#include "base/callback.h"
#include "base/commandlineflags.h"
#include "base/integral_types.h"
#include "base/logging.h"
#include "base/macros.h"
DEFINE_int32(shortestpaths_disconnected_distance, 200000,
"Distance returned when two node are disconnected");