some bug fix
This commit is contained in:
parent
3d7d4a7a51
commit
6e9bdc8b2e
2 changed files with 16 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ AM_CONFIG_HEADER(config.h:config.in)
|
||||||
|
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
|
||||||
AC_CHECK_HEADERS(bvector.h)
|
AC_CHECK_HEADERS(vector bvector.h)
|
||||||
AC_EGREP_HEADER(bit_vector, bvector.h, AC_DEFINE(HAVE_BIT_VECTOR))
|
AC_EGREP_HEADER(bit_vector, bvector.h, AC_DEFINE(HAVE_BIT_VECTOR))
|
||||||
|
|
||||||
AM_PROG_LIBTOOL
|
AM_PROG_LIBTOOL
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,21 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include <iostream> // ostream, istream
|
#include <iostream> // ostream, istream
|
||||||
#include <bvector.h> // bit_vector
|
#include <function.h> // bind2nd
|
||||||
|
|
||||||
|
#ifdef HAVE_BVECTOR_H
|
||||||
|
#include <bvector.h>
|
||||||
|
#error "incluyo bvector.h"
|
||||||
|
#elseif
|
||||||
|
#ifdef HAVE_VECTOR
|
||||||
|
#include <vector>
|
||||||
|
#define bit_vector vector<bool>
|
||||||
|
#error "incluyo vector"
|
||||||
|
#elseif
|
||||||
|
#error "are you kidding?"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string> // string
|
#include <string> // string
|
||||||
#include <EO.h> // EO
|
#include <EO.h> // EO
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue