Skip to content

Commit

Permalink
sfm: Fixed build for MSVC: snprintf only in VS2015 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilLab committed May 18, 2017
1 parent 204db71 commit 363097e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions modules/sfm/src/libmv_light/libmv/logging/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@

#include <glog/logging.h>


#if defined _MSC_VER && _MSC_VER < 1900
# define snprintf _snprintf
#endif

#define LG LOG(INFO)
#define V0 LOG(INFO)
#define V1 LOG(INFO)
Expand Down
4 changes: 0 additions & 4 deletions modules/sfm/src/libmv_light/libmv/simple_pipeline/pipeline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
#include "libmv/simple_pipeline/tracks.h"
#include "libmv/simple_pipeline/camera_intrinsics.h"

#ifdef _MSC_VER
# define snprintf _snprintf
#endif

namespace libmv {
namespace {

Expand Down

0 comments on commit 363097e

Please sign in to comment.