Skip to content

Commit

Permalink
Merged with previous release on github
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFreytag committed Jan 8, 2014
2 parents 06114f6 + 0f14f1f commit b333426
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ moc_%.cpp:%.h
$(BUILDDIR)%.a:
@$(MKOUTPUTDIR)
$(VERBOSE)echo "+++ linking library $@"
$(VERBOSE2)$(AR) cr $@ $(filter %.o,$^)
$(VERBOSE2)test -n "$(filter %.o,$^)" && $(AR) -crs $@ $(filter %.o,$^); echo;
$(VERBOSE2)test -f "$@" || (touch emptysource.cpp; gcc -c emptysource.cpp; $(AR) -crs $@ emptysource.o; rm emptysource.*); echo
@touch $@
@$(call MKOUTPUTDIR2,$(LIBSYMLINKDIR))
$(VERBOSE2)cd $(LIBSYMLINKDIR);$(SYMLINK) ../$(@:$(BUILDDIR)%=%) $(@F)
Expand Down
2 changes: 2 additions & 0 deletions core/basics/numerictools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <core/basics/Exception.h>
#include <core/basics/Streamable.h>

typedef unsigned int uint;

namespace NICE {

// check if endptr is empty string (except for whitespaces)
Expand Down
6 changes: 3 additions & 3 deletions core/basics/numerictools.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

#include <cmath>
// #include <math.h>
#include <math.h>
#include <stdlib.h>
#include <limits>
#include <string>
Expand Down Expand Up @@ -204,7 +204,7 @@ inline double cubeRoot(const double& t) {
*/
inline bool isNaN(double x) {
#if (__GNUC__ > 3)
return isnan(x);
return std::isnan(x);
#else
return x != x;
#endif
Expand All @@ -215,7 +215,7 @@ inline bool isNaN(double x) {
*/
inline bool isNaN(float x) {
#if (__GNUC__ > 3)
return isnan(x);
return std::isnan(x);
#else
return x != x;
#endif
Expand Down
2 changes: 2 additions & 0 deletions core/basics/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
#include <core/basics/tools.h>

typedef unsigned int uint;

namespace NICE {

void writeLatexTabular(std::ostream& out,
Expand Down
6 changes: 3 additions & 3 deletions core/optimization/libdepend.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$(call PKG_DEPEND_EXT,LINAL)
$(call PKG_DEPEND_INT,core/vector)
$(call PKG_DEPEND_INT,core/basics)
$(call PKG_DEPEND_EXT,LINAL)
$(call PKG_DEPEND_INT,core/vector)
$(call PKG_DEPEND_INT,core/basics)

0 comments on commit b333426

Please sign in to comment.