PageRenderTime 54ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/CS/migrated/tags/PRE_OR_REMOVAL/libs/csutil/regex_wrapper.h

#
C Header | 37 lines | 16 code | 4 blank | 17 comment | 1 complexity | fc867ef70bf31ecc5e39bb6d5c4f79a0 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_HAS_REGEX
  19. #include <regex.h>
  20. #else
  21. #if defined(CS_COMPILER_MSVC) && !defined(__STDC__)
  22. #define __STDC__ 1
  23. #define __STDC__DEFINED
  24. #endif
  25. #include "generic/regex.h"
  26. #ifdef __STDC__DEFINED
  27. #undef __STDC__
  28. #endif
  29. #endif
  30. #endif // __CS_UTIL_REGEX_WRAPPER_H__