Commit b089dc16 authored by Alexandre Julliard's avatar Alexandre Julliard

wnaspi32: Build with msvcrt.

parent d373c1a1
...@@ -2,8 +2,6 @@ MODULE = wnaspi32.dll ...@@ -2,8 +2,6 @@ MODULE = wnaspi32.dll
IMPORTLIB = wnaspi32 IMPORTLIB = wnaspi32
IMPORTS = advapi32 IMPORTS = advapi32
EXTRADLLFLAGS = -mcygwin
C_SRCS = \ C_SRCS = \
aspi.c \ aspi.c \
winaspi32.c winaspi32.c
...@@ -29,14 +29,11 @@ ...@@ -29,14 +29,11 @@
* aspi controllers, e-mail me if you need help. * aspi controllers, e-mail me if you need help.
*/ */
#include "config.h"
#include "wine/port.h"
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include <sys/types.h> #include <sys/types.h>
#include <string.h> #include <string.h>
#include <stdlib.h>
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
...@@ -45,7 +42,6 @@ ...@@ -45,7 +42,6 @@
#include "winescsi.h" #include "winescsi.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(aspi); WINE_DEFAULT_DEBUG_CHANNEL(aspi);
...@@ -132,5 +128,5 @@ DWORD ASPI_GetHCforController( int controller ) ...@@ -132,5 +128,5 @@ DWORD ASPI_GetHCforController( int controller )
} }
RegCloseKey(hkeyPort); RegCloseKey(hkeyPort);
return (atoiW(&wPortName[9]) << 16) + atoiW(&wBusName[9]); return (wcstol(&wPortName[9], NULL, 10) << 16) + wcstol(&wBusName[9], NULL, 10);
} }
...@@ -26,11 +26,6 @@ ...@@ -26,11 +26,6 @@
#include "winbase.h" #include "winbase.h"
#include "pshpack1.h" #include "pshpack1.h"
#ifdef __cplusplus
extern "C" {
#endif /* #ifdef __cplusplus */
/*********** OLD ****************/
/* Target status codes */ /* Target status codes */
#define STATUS_GOOD 0x00 #define STATUS_GOOD 0x00
...@@ -76,9 +71,6 @@ extern "C" { ...@@ -76,9 +71,6 @@ extern "C" {
#define SENSE_BUFFER(prb) (&prb->CDBByte[prb->SRB_CDBLen]) #define SENSE_BUFFER(prb) (&prb->CDBByte[prb->SRB_CDBLen])
#ifdef __cplusplus
}
#endif /* #ifdef __cplusplus */
#include "poppack.h" #include "poppack.h"
#endif #endif
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "config.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment