/src/3rdparty/clucene/src/CLucene/config/CompilerBcb.h

https://bitbucket.org/ultra_iter/qt-vtl · C Header · 68 lines · 34 code · 18 blank · 16 comment · 0 complexity · ec60a62ce5c490906cde6ce151af19a3 MD5 · raw file

  1. /*------------------------------------------------------------------------------
  2. * Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
  3. *
  4. * Distributable under the terms of either the Apache License (Version 2.0) or
  5. * the GNU Lesser General Public License, as specified in the COPYING file.
  6. ------------------------------------------------------------------------------*/
  7. #if !defined(_lucene_COMPILER_BCB)
  8. #define _lucene_COMPILER_BCB
  9. // It is internal CLucene header - DO NOT include it directly
  10. #include "CLucene/config/define_std.h"
  11. #undef _CL_HAVE_STRTOLL
  12. #undef _CL_HAVE_WCSTOLL
  13. #define _LUCENE_PRAGMA_ONCE
  14. #define _LUCENE_PRAGMA_WARNINGS //tell lucene to display warnings using pragmas instead of #warning
  15. #define LUCENE_DISABLE_HASHING
  16. #define LUCENE_STATIC_CONSTANT(type, assignment) enum { assignment }
  17. #undef LUCENE_ENABLE_MEMLEAKTRACKING //it has been reported that this causes problems
  18. #define fileSize filelength
  19. #define fileSeek lseek
  20. #define fileTell tell
  21. #define fileStat stat
  22. #define fileHandleStat fstat
  23. #define O_RANDOM 0
  24. //java long type
  25. typedef __int64 int64_t;
  26. typedef unsigned __int64 uint64_t;
  27. //java int type
  28. typedef int int32_t;
  29. typedef unsigned int uint32_t;
  30. //java byte type
  31. typedef unsigned char uint8_t;
  32. //floating point type
  33. //we are going to use qreal now
  34. //typedef double float_t;
  35. //required type
  36. typedef int intptr_t;
  37. #define _CL_ILONG(x) x ## L
  38. #define _ILONGLONG(x) x ## i64
  39. #elif !defined(_lucene_COMPILER_BCB2)
  40. #define _lucene_COMPILER_BCB2
  41. //second inclusion
  42. #define _open open
  43. #define _timeb timeb
  44. #define _ftime ::ftime
  45. #define _rename rename
  46. #define _realpath(rel,abs) _fullpath(abs,rel,CL_MAX_PATH)
  47. #elif !defined(_lucene_COMPILER_BCB3)
  48. #define _lucene_COMPILER_BCB3
  49. //third inclusion
  50. #endif