瀏覽代碼

Fix function pointer types for Windows

Neal Wilson 10 年之前
父節點
當前提交
ae9a6e2e79
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      src/phidgets.w

+ 7
- 0
src/phidgets.w 查看文件

347
 exist at compile time.
347
 exist at compile time.
348
 
348
 
349
 @<Phidgets 1048 function pointers@>=
349
 @<Phidgets 1048 function pointers@>=
350
+#ifdef _WIN32
351
+typedef int (__stdcall *PhidgetHandleOnly)(void *);
352
+typedef int (__stdcall *PhidgetHandleInt)(void *, int);
353
+typedef int (__stdcall *PhidgetHandleIntInt)(void *, int, int);
354
+typedef int (__stdcall *PhidgetHandleIntDoubleOut)(void *, int, double*);
355
+#else
350
 typedef int (*PhidgetHandleOnly)(void *);
356
 typedef int (*PhidgetHandleOnly)(void *);
351
 typedef int (*PhidgetHandleInt)(void *, int);
357
 typedef int (*PhidgetHandleInt)(void *, int);
352
 typedef int (*PhidgetHandleIntInt)(void *, int, int);
358
 typedef int (*PhidgetHandleIntInt)(void *, int, int);
353
 typedef int (*PhidgetHandleIntDoubleOut)(void *, int, double*);
359
 typedef int (*PhidgetHandleIntDoubleOut)(void *, int, double*);
360
+#endif
354
 PhidgetHandleOnly createDevice;
361
 PhidgetHandleOnly createDevice;
355
 PhidgetHandleInt openDevice;
362
 PhidgetHandleInt openDevice;
356
 PhidgetHandleInt waitForOpen;
363
 PhidgetHandleInt waitForOpen;

Loading…
取消
儲存