Fix -Wundef warnings

This commit is contained in:
Rosen Penev
2016-08-26 21:05:44 -07:00
parent be47aebc24
commit aeee10fbeb
7 changed files with 22 additions and 22 deletions

View File

@@ -11,12 +11,12 @@ int xnvctrl_init (XNVCTRL_PTR *xnvctrl)
memset (xnvctrl, 0, sizeof (XNVCTRL_PTR));
#ifdef _WIN
#if defined(_WIN)
// unsupport platform?
return -1;
#elif _POSIX
#elif defined(_POSIX)
xnvctrl->lib_x11 = dlopen ("libX11.so", RTLD_LAZY);
@@ -55,7 +55,7 @@ void xnvctrl_close (XNVCTRL_PTR *xnvctrl)
{
if (xnvctrl)
{
#if _POSIX
#ifdef _POSIX
if (xnvctrl->lib_x11)
{