mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 21:43:26 +01:00
Improved msvc compatibility
This commit is contained in:
parent
70936935c9
commit
4616aef070
@ -29,7 +29,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#else /* WIN32 */
|
#else /* WIN32 */
|
||||||
@ -49,7 +49,7 @@
|
|||||||
char *get_user_config_dir(void)
|
char *get_user_config_dir(void)
|
||||||
{
|
{
|
||||||
char *user_config_dir;
|
char *user_config_dir;
|
||||||
#ifdef __WIN32__
|
#ifdef _WIN32
|
||||||
#warning Please fix configdir for Win32
|
#warning Please fix configdir for Win32
|
||||||
return NULL;
|
return NULL;
|
||||||
#if 0
|
#if 0
|
||||||
@ -130,7 +130,7 @@ char *get_user_config_dir(void)
|
|||||||
*/
|
*/
|
||||||
int create_user_config_dir(char *path)
|
int create_user_config_dir(char *path)
|
||||||
{
|
{
|
||||||
#ifdef __WIN32__
|
#ifdef _WIN32
|
||||||
#warning Please fix configdir for Win32
|
#warning Please fix configdir for Win32
|
||||||
return -1;
|
return -1;
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user