Skip to content

Commit

Permalink
Fix inclusions of double-conversion to use proper path
Browse files Browse the repository at this point in the history
Summary: Will commit in tandem with D1171409.

Test Plan: built folly

Reviewed By: tudorb@fb.com

FB internal diff: D1189713
  • Loading branch information
andrewjcg authored and Dave Watson committed Feb 28, 2014
1 parent 2eac6ea commit 56e0ec4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion folly/Conv.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

#include <limits.h>

#include "double-conversion.h" // V8 JavaScript implementation
// V8 JavaScript implementation
#include <double-conversion/double-conversion.h>

#define FOLLY_RANGE_CHECK(condition, message) \
((condition) ? (void)0 : throw std::range_error( \
Expand Down
2 changes: 1 addition & 1 deletion folly/Format.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <map>
#include <unordered_map>

#include <double-conversion.h>
#include <double-conversion/double-conversion.h>

#include "folly/FBVector.h"
#include "folly/Conv.h"
Expand Down
4 changes: 2 additions & 2 deletions folly/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ AX_BOOST_SYSTEM
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h features.h inttypes.h limits.h stdint.h stdlib.h string.h sys/time.h unistd.h mutex.h malloc.h emmintrin.h byteswap.h bits/functexcept.h])

AC_CHECK_HEADER(double-conversion.h, [], [AC_MSG_ERROR(
AC_CHECK_HEADER(double-conversion/double-conversion.h, [], [AC_MSG_ERROR(
[Couldn't find double-conversion.h, please download from \
http://code.google.com/p/double-conversion/])], [])
AC_CHECK_LIB([double_conversion_pic],[ceil],[],[AC_MSG_ERROR(
AC_CHECK_LIB([double-conversion],[ceil],[],[AC_MSG_ERROR(
[Please install double-conversion library])])

# Checks for typedefs, structures, and compiler characteristics.
Expand Down

0 comments on commit 56e0ec4

Please sign in to comment.