Go to the SVN repository for this file.
1 #ifndef GUI_WIDGETS_WX___FIXED_BASE__HPP 2 #define GUI_WIDGETS_WX___FIXED_BASE__HPP 4 /* $Id: fixed_base.hpp 30858 2014-07-31 14:05:43Z ucko $ 5 * =========================================================================== 8 * National Center for Biotechnology Information 10 * This software/database is a "United States Government Work" under the 11 * terms of the United States Copyright Act. It was written as part of 12 * the author's official duties as a United States Government employee and 13 * thus cannot be copyrighted. This software/database is freely available 14 * to the public for use. The National Library of Medicine and the U.S. 15 * Government have not placed any restriction on its use or reproduction. 17 * Although all reasonable efforts have been taken to ensure the accuracy 18 * and reliability of the software and data, the NLM and the U.S. 19 * Government do not and cannot warrant the performance or results that 20 * may be obtained by using this software or data. The NLM and the U.S. 21 * Government disclaim all warranties, express or implied, including 22 * warranties of performance, merchantability or fitness for any particular 25 * Please cite the author in any work or product based on this material. 27 * =========================================================================== 33 /// @file fixed_base.hpp 34 /// Workaround for wxWidgets header errors in certain configurations; 35 /// MUST be included (at least indirectly) before any wxWidgets headers. 37 /// In certain configurations (including in particular those on FreeBSD 10, 38 /// which features a pure LLVM toolchain but lacks a fully C++98-compliant 39 /// <wchar.h>), inline calls to wide-string functions from wxcrt.h can 40 /// yield ambiguity errors due to the presence of formally distinct 41 /// versions in :: and std::, even though the latter are trivial 42 /// const-preserving wrappers for the former. 44 /// All such calls already go through wxCRT_Str*W macros, conditionally 45 /// redefined here to force the use of std::wcs*. 49 #if defined(_LIBCPP_VERSION) && !defined(_WCHAR_H_CPLUSPLUS_98_CONFORMANCE_) 52 # include <wx/wxcrtbase.h> 55 # undef wxCRT_StrpbrkW 56 # undef wxCRT_StrrchrW 59 # define wxCRT_StrchrW std::wcschr 60 # define wxCRT_StrpbrkW std::wcspbrk 61 # define wxCRT_StrrchrW std::wcsrchr 62 # define wxCRT_StrstrW std::wcsstr 66 #endif /* GUI_WIDGETS_WX___FIXED_BASE__HPP */RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4