~drizzle-developers/ubuntu/karmic/drizzle/ppa

« back to all changes in this revision

Viewing changes to config.h.in

  • Committer: Monty Taylor
  • Date: 2010-11-24 18:44:57 UTC
  • mfrom: (1308.1.31 trunk)
  • Revision ID: mordred@inaugust.com-20101124184457-qd6jvoe2wgnvl3yq
Tags: 2010.11.04-0ubuntu1~karmic1
* New upstream release.
* Turn off -Werror for packaging builds. (Closes: #602662)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
/* Define if building universal (internal helper macro) */
16
16
#undef AC_APPLE_UNIVERSAL_BUILD
17
17
 
18
 
/* Used for client/linebuffer.cc, remove this and fix file when we require a
19
 
   newer boost */
20
 
#undef BOOST_IOSTREAMS_USE_DEPRECATED
21
 
 
22
18
/* Define indicating we are building and not consuming drizzle. */
23
19
#undef BUILDING_DRIZZLED
24
20
 
803
799
#define get_socket_errno() errno
804
800
#endif
805
801
 
 
802
#if defined(__cplusplus)
 
803
# if defined(DEBUG)
 
804
#  include <cassert>
 
805
#  include <cstddef>
 
806
# endif
 
807
template<typename To, typename From>
 
808
inline To implicit_cast(From const &f) {
 
809
  return f;
 
810
}
 
811
template<typename To, typename From>     // use like this: down_cast<T*>(foo);
 
812
inline To down_cast(From* f) {                   // so we only accept pointers
 
813
  // Ensures that To is a sub-type of From *.  This test is here only
 
814
  // for compile-time type checking, and has no overhead in an
 
815
  // optimized build at run-time, as it will be optimized away
 
816
  // completely.
 
817
  if (false) {
 
818
    implicit_cast<From*, To>(0);
 
819
  }
 
820
 
 
821
#if defined(DEBUG)
 
822
  assert(f == NULL || dynamic_cast<To>(f) != NULL);  // RTTI: debug mode only!
 
823
#endif
 
824
  return static_cast<To>(f);
 
825
}
 
826
#endif /* defined(__cplusplus) */
 
827
 
806
828
#endif /* __CONFIG_H__ */
807
829