summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/lsusb.c6
-rw-r--r--examples/lsusb_sources1
-rw-r--r--examples/xusb.c6
-rw-r--r--examples/xusb_sources1
4 files changed, 4 insertions, 10 deletions
diff --git a/examples/lsusb.c b/examples/lsusb.c
index c6561f9..735bd8a 100644
--- a/examples/lsusb.c
+++ b/examples/lsusb.c
@@ -40,11 +40,7 @@ static void print_devs(libusb_device **devs)
}
}
-int
-#ifdef _MSC_VER
-__cdecl
-#endif
-main(void)
+int main(void)
{
libusb_device **devs;
int r;
diff --git a/examples/lsusb_sources b/examples/lsusb_sources
index 8ca6e61..0c19438 100644
--- a/examples/lsusb_sources
+++ b/examples/lsusb_sources
@@ -1,5 +1,6 @@
TARGETNAME=lsusb
TARGETTYPE=PROGRAM
+386_STDCALL=0
_NT_TARGET_VERSION= $(_NT_TARGET_VERSION_WINXP)
diff --git a/examples/xusb.c b/examples/xusb.c
index 4f06151..d2b9a7b 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -736,11 +736,7 @@ int test_device(uint16_t vid, uint16_t pid)
return 0;
}
-int
-#ifdef _MSC_VER
-__cdecl
-#endif
-main(int argc, char** argv)
+int main(int argc, char** argv)
{
bool show_help = false;
bool got_vidpid = false;
diff --git a/examples/xusb_sources b/examples/xusb_sources
index ba7cd08..f0a280c 100644
--- a/examples/xusb_sources
+++ b/examples/xusb_sources
@@ -1,5 +1,6 @@
TARGETNAME=xusb
TARGETTYPE=PROGRAM
+386_STDCALL=0
_NT_TARGET_VERSION= $(_NT_TARGET_VERSION_WINXP)