mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-07-08 01:30:39 +08:00
Fix build
This commit is contained in:
@@ -3,10 +3,6 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
#include <Windows.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool stringToChar(std::string input, char*& output) {
|
bool stringToChar(std::string input, char*& output) {
|
||||||
auto sz = input.size();
|
auto sz = input.size();
|
||||||
auto s = (char*)malloc(sz + 1);
|
auto s = (char*)malloc(sz + 1);
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
#ifndef _UTIL_WCHAR_UTIL_H
|
#ifndef _UTIL_WCHAR_UTIL_H
|
||||||
#define _UTIL_WCHAR_UTIL_H
|
#define _UTIL_WCHAR_UTIL_H
|
||||||
#include<string>
|
#include<string>
|
||||||
|
#if _WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace wchar_util {
|
namespace wchar_util {
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
|
|||||||
Reference in New Issue
Block a user