mirror of
https://github.com/moparisthebest/hexchat
synced 2024-12-24 08:38:54 -05:00
plugin config unix compatibility part 1
This commit is contained in:
parent
ab3e3926ab
commit
845c4915bf
@ -23,6 +23,12 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#include <io.h>
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "xchat.h"
|
#include "xchat.h"
|
||||||
#include "fe.h"
|
#include "fe.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
@ -1686,7 +1692,7 @@ xchat_get_plugin_pref (xchat_plugin *pl, char *var, char *dest)
|
|||||||
g_free (canon);
|
g_free (canon);
|
||||||
|
|
||||||
/* partly borrowed from palette.c */
|
/* partly borrowed from palette.c */
|
||||||
fh = xchat_open_file (confname, _O_RDONLY, 0, 0);
|
fh = xchat_open_file (confname, O_RDONLY, 0, 0);
|
||||||
|
|
||||||
if (fh == -1)
|
if (fh == -1)
|
||||||
{
|
{
|
||||||
|
@ -30,5 +30,7 @@ EXPORTED {
|
|||||||
xchat_send_modes;
|
xchat_send_modes;
|
||||||
xchat_strip;
|
xchat_strip;
|
||||||
xchat_free;
|
xchat_free;
|
||||||
|
xchat_set_plugin_pref;
|
||||||
|
xchat_get_plugin_pref;
|
||||||
local: *;
|
local: *;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user