Allow std literals everywhere

This commit is contained in:
Frédéric Mangano 2023-02-22 17:00:34 +09:00
parent a435a28e9f
commit 9652f50316
6 changed files with 2 additions and 10 deletions

View File

@ -16,8 +16,6 @@
#include <sys/stat.h>
#include <unistd.h>
using namespace std::literals::string_literals;
static const char help_message[] =
PROJECT_NAME " version " PROJECT_VERSION
R"raw(

View File

@ -13,8 +13,6 @@
#include <errno.h>
#include <string.h>
using namespace std::literals::string_literals;
bool ot::is_opus_stream(const ogg_page& identification_header)
{
if (ogg_page_bos(&identification_header) == 0)

View File

@ -53,6 +53,8 @@
#define le32toh(x) OSSwapLittleToHostInt32(x)
#endif
using namespace std::literals;
namespace ot {
/**

View File

@ -18,8 +18,6 @@
#include <sys/wait.h>
#include <unistd.h>
using namespace std::string_literals;
void ot::partial_file::open(const char* destination)
{
final_name = destination;

View File

@ -3,8 +3,6 @@
#include <string.h>
using namespace std::literals::string_literals;
static ot::status read_comments(FILE* input, std::list<std::string>& comments, bool raw)
{
try {

View File

@ -3,8 +3,6 @@
#include <string.h>
using namespace std::literals::string_literals;
static const char standard_OpusTags[] =
"OpusTags"
"\x14\x00\x00\x00" "opustags test packet"