}
if (S_ISREG(sb.st_mode)) {
-#ifndef __MINGW32__
+#ifndef WIN32
info->physical = (unsigned long long)sb.st_blocks *
(unsigned long long)DEV_BSIZE;
#else
if (allocation) {
if (S_ISREG(sb.st_mode)) {
-#ifndef __MINGW32__
+#ifndef WIN32
*allocation = (unsigned long long)sb.st_blocks *
(unsigned long long)DEV_BSIZE;
#else
}
-#ifndef __MINGW32__
+#ifndef WIN32
/*
* Run an external program.
*
return 0;
}
-#else
+#else /* WIN32 */
int
virStorageBackendRunProgRegex(virConnectPtr conn,
virStorageReportError(VIR_ERR_INTERNAL_ERROR, _("%s not implemented on Win32"), __FUNCTION__);
return -1;
}
-#endif
+#endif /* WIN32 */
/*
* console.c: A dumb serial console client
*
- * Copyright (C) 2007, 2008 Red Hat, Inc.
+ * Copyright (C) 2007, 2008, 2010 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include <config.h>
-#ifndef __MINGW32__
+#ifndef WIN32
# include <stdio.h>
# include <sys/types.h>
return ret;
}
-#endif /* !__MINGW32__ */
+#endif /* !WIN32 */
/*
* console.c: A dumb serial console client
*
- * Copyright (C) 2007 Red Hat, Inc.
+ * Copyright (C) 2007, 2010 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#ifndef __VIR_CONSOLE_H__
# define __VIR_CONSOLE_H__
-# ifndef __MINGW32__
+# ifndef WIN32
int vshRunConsole(const char *tty);
-# endif /* !__MINGW32__ */
+# endif /* !WIN32 */
#endif /* __VIR_CONSOLE_H__ */