From 9965cadbde1fa7bf6e0c4cefea7e0862f8248285 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Tue, 30 Dec 2003 22:18:37 +0000 Subject: [PATCH] more ifdef C++ stuff git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/wxchar.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 0bf32e0c16..91837e70a9 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -1,13 +1,13 @@ -/* /////////////////////////////////////////////////////////////////////////// */ -/* Name: wx/wxchar.h */ -/* Purpose: Declarations common to wx char/wchar_t usage (wide chars) */ -/* Author: Joel Farley, Ove Kåven */ -/* Modified by: Vadim Zeitlin, Robert Roebling */ -/* Created: 1998/06/12 */ -/* RCS-ID: $Id$ */ -/* Copyright: (c) 1998-2002 wxWindows dev team */ -/* Licence: wxWindows licence */ -/* /////////////////////////////////////////////////////////////////////////// */ +/** +* Name: wx/wxchar.h +* Purpose: Declarations common to wx char/wchar_t usage (wide chars) +* Author: Joel Farley, Ove Kåven +* Modified by: Vadim Zeitlin, Robert Roebling +* Created: 1998/06/12 +* RCS-ID: $Id$ +* Copyright: (c) 1998-2002 wxWindows dev team +* Licence: wxWindows licence +*/ /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ @@ -651,15 +651,14 @@ #endif #endif /* wxUSE_WCHAR_T */ - /* checks whether the passed in pointer is NULL and if the string is empty */ #ifdef __cplusplus +/* checks whether the passed in pointer is NULL and if the string is empty */ inline bool wxIsEmpty(const wxChar *p) { return !p || !*p; } /* safe version of strlen() (returns 0 if passed NULL pointer) */ inline size_t wxStrlen(const wxChar *psz) { return psz ? wxStrlen_(psz) : 0; } #endif - /* each of strdup() and wcsdup() may or may not be available but we need both */ /* of them anyhow for wx/buffer.h so we define the missing one(s) in */ /* wxchar.cpp and so we should always have both wxStrdupA and wxStrdupW */ -- 2.45.2