win-pvdrivers

view mingw/mingw_extras.h @ 1066:24fae56a87bf

Fix build errors
author James Harper <james.harper@bendigoit.com.au>
date Tue Oct 29 19:38:31 2013 +1100 (2013-10-29)
parents 8e10579159a0
children
line source
1 #include <stdio.h>
3 #define __FUNCTION__ __func__
5 NTSTATUS bit_scan_forward(unsigned long *index, unsigned long mask);
6 int synch_set_bit(int nr, volatile long * addr);
7 int synch_clear_bit(int nr, volatile long * addr);
9 /* windows wchar 2 bytes, Linux's is 4! */
10 typedef unsigned short win_wchar_t;
12 NTSTATUS
13 RtlStringCbPrintfW(
14 win_wchar_t *dest_str,
15 size_t dest_size,
16 win_wchar_t *format,
17 ...);