2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-01-19 04:22:12 +00:00

40 Commits

Author SHA1 Message Date
Alexander Grund
a0327e0b74 Update license headers
Use the more concise format omitting the reference to the license file
and refer to the URL only.
2022-07-13 12:35:54 +02:00
Alexander Grund
a4f3cb816d Generate standalone config.hpp from regular config.hpp
To avoid that the standalong config.hpp becomes outdated, missing
defines etc., the standalone/config.hpp is repurposed as a replacement
for <boost/config.hpp> and basically pasted where that would be included
in the nowide/config.hpp.
Fixes the missing define as reported in #152.
2022-03-26 17:44:38 +01:00
Alexander Grund
593473adbf Suppress deprecation warnings for std::codecvt<char16/32_t, char,...> in C++20
Do this for GCC and Clang
2021-11-30 21:02:16 +01:00
Christoph Reiter
79ab684f5a Stop defining __MSVCRT_VERSION__
__MSVCRT_VERSION__ is a mingw internal and shouldn't be set by the user.

Setting it to something different than the toolchain provided value means the
headers and crt wont match which can result in crashes and build errors.

This fixes the boost build when targeting ucrt.
2021-04-05 17:17:46 +02:00
Alexander Grund
84dfbff44a Merge pull request #109 from Flamefire/standalone_likely
Use __builtin_expect on GCC compilers also in standalone
2020-06-18 17:58:46 +02:00
Alexander Grund
86dee98a5c Use __builtin_expect on GCC compilers also in standalone 2020-06-18 16:54:09 +02:00
Alexander Grund
d6ebda508f Fix stat64 on MinGW 2020-06-17 08:41:22 +02:00
Alexander Grund
34468be18c Make Large File Support more portable
The macro based solution has the downside of cluttering the global
namespace and requires duplication in both config headers.
Additionally ftello64 might not be available on some system where the
define check succeeds.

This solution uses a cpp file to wrap the functions adding enhanced
exists checks and additionally checking for overflow returning -1
(error) in that case as mandated by the standard for the filebuf
functions.

Finally a configure check determines general availability of LFS and if
it is not available the standard fseek/ftell functions are used.
2020-06-09 21:44:30 +02:00
David Wedderwille
70f0cbf67f fix format 2020-06-03 23:27:52 +02:00
David Wedderwille
efa3096c99 fix defines for cygwin 2020-06-03 23:13:38 +02:00
David Wedderwille
0f9051f1e7 fix define 2020-06-03 14:26:03 +02:00
David Wedderwille
57859d7c19 define fix 2020-06-03 09:35:51 +02:00
David Wedderwille
7124da68fd define fix 2020-06-03 09:19:12 +02:00
David Wedderwille
053c82c4b0 define fix 2020-06-03 08:37:26 +02:00
David Wedderwille
37b3898d4d insert __APPLE__ define 2020-06-03 08:22:51 +02:00
David Wedderwille
8b5a112f05 add library macro BOOST_NOWIDE_FTELL64 and BOOST_NOWIDE_FSEEK64 2020-06-03 01:37:31 +02:00
David Wedderwille
a015cabcde Support for files > 2 GiB for fseek and ftell. 2020-06-02 16:38:35 +02:00
Alexander Grund
09ee463a6d Remove last remainings of compatibility code (Requires MSVC 2015+, libstd++5+) 2020-05-22 12:20:11 +02:00
Alexander Grund
20385d4a3c Fix name of license file 2020-05-22 12:20:11 +02:00
Alexander Grund
fc5da4b239 Move to C++11 as the minimum dropping boost dependencies 2020-05-22 12:20:03 +02:00
Alexander Grund
7054b4b2a6 Allow building as standalone (No Boost references at all)
Update conversion script
Fix references in Code
Add tests
2020-03-15 18:44:21 +01:00
Alexander Grund
3e391eac15 Rename BOOST_NOWIDE_USE_FSTREAM_REPLACEMENTS to BOOST_NOWIDE_USE_FILEBUF_REPLACEMENT 2020-02-25 15:00:49 +01:00
Alexander Grund
7854435d8e Switch pointer alignment to left
Consistency with rest of boost
2020-01-07 21:27:26 +01:00
Alexander Grund
1168f607bb Remove vim format tags 2020-01-07 19:41:33 +01:00
Alexander Grund
5813bfacec Add BOOST_NOWIDE_USE_FSTREAM_REPLACEMENTS macro
Allows to test the fstream classes on e.g. Linux
They were designed to work cross-platform
2020-01-02 18:47:53 +01:00
Flamefire
3bd6eed183 Enforce uniform formatting via clang-format 2019-12-28 16:02:31 +01:00
Flamefire
3d6c001fc4 Add proper CMake files 2019-12-27 14:26:31 +01:00
Flamefire
f95ef16706 Remove dependency on Boost.Locale
Copy utf.hpp from Boost.Locale
2019-12-27 14:26:31 +01:00
Flamefire
4110393815 Remove dependency on encoding_utf
Function utf_to_utf is no longer used
2019-12-25 15:32:08 +01:00
Flamefire
f2e95fc899 Remove trailing whitespace 2019-12-14 15:47:01 +01:00
Flamefire
7549c80457 Include C++ headers instead of C variants 2019-12-14 13:35:37 +01:00
Artyom Beilis
11a7d83c1c Updates after review notes use U+FFFD instead of flagging error in case of invalid utf-8 2018-04-08 00:21:13 +03:00
Artyom Beilis
ec9672b6cd Updated standalone scripts 2017-06-10 22:12:46 +03:00
Sfinktah Bungholio
afa1c3616b minor spelling errors corrected in comments 2016-09-10 14:10:43 +10:00
Artyom Beilis
2a67bc67d8 Improved release script 2015-09-24 23:41:51 +03:00
Artyom Beilis
82bee6e0b8 Updated build and test procedure 2015-09-24 23:34:29 +03:00
Artyom Beilis
e62e65a4cd Updated utf.hpp from boost, fixed convert script 2014-12-31 15:02:20 +02:00
Artyom Beilis
a5ea3d2736 - Added __declspec(dllexport) as expected
- Added a test such that propotypes tested agains real windows headers
2012-06-02 16:48:46 +03:00
Artyom Beilis
a1b99df9d3 Added more tests 2012-05-30 09:34:34 +03:00
Artyom Beilis
335671edb2 Many updates 2012-05-30 09:09:50 +03:00