common.h | common.h | |||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
*/ | */ | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <inttypes.h> | ||||
#include <time.h> | #include <time.h> | |||
#include <sys/time.h> | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#ifdef _MSC_VER | ||||
#include <winsock2.h> | ||||
typedef __int8 int8_t; | ||||
typedef unsigned __int8 uint8_t; | ||||
typedef __int16 int16_t; | ||||
typedef unsigned __int16 uint16_t; | ||||
typedef __int32 int32_t; | ||||
typedef unsigned __int32 uint32_t; | ||||
typedef __int64 int64_t; | ||||
typedef unsigned __int64 uint64_t; | ||||
#else | ||||
#include <sys/time.h> | ||||
#include <stdint.h> | ||||
#endif | ||||
typedef uint32_t uint4; | typedef uint32_t uint4; | |||
typedef uint16_t uint2; | typedef uint16_t uint2; | |||
typedef uint8_t uchar; | typedef uint8_t uchar; | |||
typedef int32_t sint4; | typedef int32_t sint4; | |||
typedef int16_t sint2; | typedef int16_t sint2; | |||
typedef int8_t schar; | typedef int8_t schar; | |||
typedef int8_t boole; | typedef int8_t boole; | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 17 lines changed or added | |||