PageRenderTime 40ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/CS/tags/V1.2rc2/libs/csutil/regex_wrapper.h

#
C Header | 38 lines | 17 code | 4 blank | 17 comment | 2 complexity | 324f7ed5bc73cd83c80c53290b0ddac5 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, LGPL-2.0
  1. /*
  2. Copyright (C) 2004 by Frank Richter
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public
  12. License along with this library; if not, write to the Free
  13. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. */
  15. #ifndef __CS_UTIL_REGEX_WRAPPER_H__
  16. #define __CS_UTIL_REGEX_WRAPPER_H__
  17. #include "csplatform.h"
  18. #ifdef CS_HAVE_REGEX
  19. #include <regex.h>
  20. #else
  21. #if (defined(CS_COMPILER_MSVC) || defined(CS_COMPILER_BCC)) && \
  22. !defined(__STDC__)
  23. #define __STDC__ 1
  24. #define __STDC__DEFINED
  25. #endif
  26. #include "generic/regex.h"
  27. #ifdef __STDC__DEFINED
  28. #undef __STDC__
  29. #endif
  30. #endif
  31. #endif // __CS_UTIL_REGEX_WRAPPER_H__