Преглед изворни кода

Fix another Visual C++ 2008/2010 deficiency (closes #53)

Thanks to oldfaber.
Stéphane Raimbault пре 13 година
родитељ
комит
23dd803f3f
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/modbus-private.h

+ 2 - 1
src/modbus-private.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright © 2010-2011 Stéphane Raimbault <stephane.raimbault@gmail.com>
+ * Copyright © 2010-2012 Stéphane Raimbault <stephane.raimbault@gmail.com>
  *
  *
  * This library is free software; you can redistribute it and/or
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * modify it under the terms of the GNU Lesser General Public
@@ -25,6 +25,7 @@
 #else
 #else
 # include "stdint.h"
 # include "stdint.h"
 # include <time.h>
 # include <time.h>
+typedef int ssize_t;
 #endif
 #endif
 #include <sys/types.h>
 #include <sys/types.h>
 #include <config.h>
 #include <config.h>