exec: Exclude non portable function for MinGW
authorStefan Weil <sw@weilnetz.de>
Tue, 14 Jan 2014 06:00:28 +0000 (07:00 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 15 Jan 2014 19:34:17 +0000 (23:34 +0400)
cpu_physical_memory_set_dirty_lebitmap calls getpageaddr and ffsl which are
unavailable for MinGW. As the function is unused for MinGW, it can simply
be excluded from compilation.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/exec/ram_addr.h

index 33c8acc02e456dc4250442909ca181faf59c395e..481a4474174fd51a8580905dcf7c231a373da360 100644 (file)
@@ -79,6 +79,7 @@ static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start,
     xen_modified_memory(start, length);
 }
 
+#if !defined(_WIN32)
 static inline void cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap,
                                                           ram_addr_t start,
                                                           ram_addr_t pages)
@@ -127,6 +128,7 @@ static inline void cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap,
         }
     }
 }
+#endif /* not _WIN32 */
 
 static inline void cpu_physical_memory_clear_dirty_range(ram_addr_t start,
                                                          ram_addr_t length,