SBlogInternal.h
上传用户:xqtpzdz
上传日期:2022-05-21
资源大小:1764k
文件大小:2k
源码类别:

xml/soap/webservice

开发平台:

Visual C++

  1. /*  SBlogInternal.h, compiler/platform specific definitions */
  2. /****************License************************************************
  3.  * Vocalocity OpenVXI
  4.  * Copyright (C) 2004-2005 by Vocalocity, Inc. All Rights Reserved.
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License
  7.  * as published by the Free Software Foundation; either version 2
  8.  * of the License, or (at your option) any later version.
  9.  *  
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  * Vocalocity, the Vocalocity logo, and VocalOS are trademarks or 
  19.  * registered trademarks of Vocalocity, Inc. 
  20.  * OpenVXI is a trademark of Scansoft, Inc. and used under license 
  21.  * by Vocalocity.
  22.  ***********************************************************************/
  23. #ifndef SBLOG_INTERNAL_H
  24. #define SBLOG_INTERNAL_H
  25. #ifndef NULL
  26. #ifdef  __cplusplus
  27. #define NULL    0
  28. #else
  29. #define NULL    ((void *)0)
  30. #endif
  31. #endif
  32. #ifdef WIN32
  33. #define wcsncasecmp(s1,s2,n) _wcsnicmp(s1,s2,n)
  34. #define wcscasecmp(s1,s2) _wcsicmp(s1,s2)
  35. #define strcasecmp(a,b) _stricmp(a,b)
  36. #endif
  37. #ifdef __cplusplus
  38. namespace std { };
  39. using namespace std;
  40. #ifdef _MSC_VER           /* Microsoft Visual C++ */
  41. /* Suppress/disable warnings triggered by STL headers */
  42. #pragma warning(4 : 4786) /* identifier was truncated to '255' 
  43.      characters in the debug information */
  44. #endif /* _MSC_VER */
  45. #if defined(__GNUC__) && (! defined(_GLIBCPP_USE_WCHAR_T))
  46. #include <string>
  47. namespace std
  48. {
  49.   typedef basic_string<wchar_t> wstring;
  50. }
  51. #endif
  52. #endif /* __cplusplus */
  53. #endif /* include guard */