libnjb.h   libnjb.h 
skipping to change at line 17 skipping to change at line 17
* *
* <code> * <code>
* #include <libnjb.h> * #include <libnjb.h>
* </code> * </code>
*/ */
#ifndef __LIBNJB__H #ifndef __LIBNJB__H
#define __LIBNJB__H #define __LIBNJB__H
/** The version of this installation of libnjb */ /** The version of this installation of libnjb */
#define LIBNJB_VERSION 2.2.1 #define LIBNJB_VERSION 2.2.2
/** A legacy definition - nowadays we always compile for libusb */ /** A legacy definition - nowadays we always compile for libusb */
#define LIBNJB_COMPILED_FOR_LIBUSB 1 #define LIBNJB_COMPILED_FOR_LIBUSB 1
/* This handles MSVC pecularities */
#ifdef _MSC_VER
#include <windows.h>
#define __WIN32__
#define snprintf _snprintf
#define ssize_t SSIZE_T
#endif
#include <sys/types.h> #include <sys/types.h>
#ifdef __WIN32__ #ifdef __WIN32__
/* Windows specific code, types that do not exist in Windows /* Windows specific code, types that do not exist in Windows
* sys/types.h * sys/types.h
*/ */
typedef char int8_t; typedef char int8_t;
typedef unsigned char u_int8_t; typedef unsigned char u_int8_t;
typedef __int16 int16_t; typedef __int16 int16_t;
typedef unsigned __int16 u_int16_t; typedef unsigned __int16 u_int16_t;
typedef __int32 int32_t; typedef __int32 int32_t;
typedef unsigned __int32 u_int32_t; typedef unsigned __int32 u_int32_t;
typedef unsigned __int64 u_int64_t; typedef unsigned __int64 u_int64_t;
#endif #endif
#ifdef __sun #ifdef __sun
/* Solaris specific code, types that do not exist in Solaris'
* sys/types.h /*
* Solaris specific code, types that do not exist in Solaris'
* sys/types.h. u_intN_t is the ISO C way, whereas Solaris'
* way is POSIXly correct.
*/ */
#define u_int8_t uint8_t #define u_int8_t uint8_t
#define u_int16_t uint16_t #define u_int16_t uint16_t
#define u_int32_t uint32_t #define u_int32_t uint32_t
#define u_int64_t uint64_t #define u_int64_t uint64_t
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <usb.h> #include <usb.h>
 End of changes. 3 change blocks. 
3 lines changed or deleted 14 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/