diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 08cff00d8b8bd2eb97c73dc18af35ebe93dc0bfa..704f82425c6431db9bfe36b83d8aa6f6570649bc 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -9080,7 +9080,7 @@ static int qemuDomainGetBlockInfo(virDomainPtr dom, } if (S_ISREG(sb.st_mode)) { -#ifndef __MINGW32__ +#ifndef WIN32 info->physical = (unsigned long long)sb.st_blocks * (unsigned long long)DEV_BSIZE; #else diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index 5003b8c6b4c46649801f3c1f315af44cf230721d..be87a81d989905396a69af75d2647c66342afdcc 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -954,7 +954,7 @@ virStorageBackendUpdateVolTargetInfoFD(virStorageVolTargetPtr target, 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 @@ -1184,7 +1184,7 @@ virStorageBackendStablePath(virStoragePoolObjPtr pool, } -#ifndef __MINGW32__ +#ifndef WIN32 /* * Run an external program. * @@ -1466,7 +1466,7 @@ virStorageBackendRunProgNul(virStoragePoolObjPtr pool, return 0; } -#else +#else /* WIN32 */ int virStorageBackendRunProgRegex(virConnectPtr conn, @@ -1494,4 +1494,4 @@ virStorageBackendRunProgNul(virConnectPtr conn, virStorageReportError(VIR_ERR_INTERNAL_ERROR, _("%s not implemented on Win32"), __FUNCTION__); return -1; } -#endif +#endif /* WIN32 */ diff --git a/tools/console.c b/tools/console.c index 4201ba4fc964f730004396cb8d94d016e82e586b..60e62e2c06d49a79125713ef87648f4a18b0715a 100644 --- a/tools/console.c +++ b/tools/console.c @@ -1,7 +1,7 @@ /* * 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 @@ -22,7 +22,7 @@ #include -#ifndef __MINGW32__ +#ifndef WIN32 # include # include @@ -197,4 +197,4 @@ int vshRunConsole(const char *tty) { return ret; } -#endif /* !__MINGW32__ */ +#endif /* !WIN32 */ diff --git a/tools/console.h b/tools/console.h index 683f1cbad25f8e94c3944cdd4d2a6fd3e644ed54..d0df78db1bac1841c0dbe41169d921e39bbf2eb4 100644 --- a/tools/console.h +++ b/tools/console.h @@ -1,7 +1,7 @@ /* * 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 @@ -23,10 +23,10 @@ #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__ */