db-3.2.9-gcc43.patch 441 B

1234567891011121314151617
  1. diff -Nuar db-3.2.9.orig/include/db_cxx.h db-3.2.9/include/db_cxx.h
  2. --- db-3.2.9.orig/include/db_cxx.h 2001-01-11 10:28:55.000000000 -0800
  3. +++ db-3.2.9/include/db_cxx.h 2008-08-16 16:10:48.474699646 -0700
  4. @@ -49,7 +49,12 @@
  5. // Forward declarations
  6. //
  7. +#if defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
  8. +using namespace std;
  9. +#include <iostream>
  10. +#else
  11. #include <iostream.h>
  12. +#endif
  13. #include <stdarg.h>
  14. #include "db.h"