api.h   api.h 
skipping to change at line 32 skipping to change at line 32
* \author Bob Deblier <bob.deblier@pandora.be> * \author Bob Deblier <bob.deblier@pandora.be>
*/ */
#ifndef _BEECRYPT_API_H #ifndef _BEECRYPT_API_H
#define _BEECRYPT_API_H #define _BEECRYPT_API_H
#if defined(_WIN32) && !defined(WIN32) #if defined(_WIN32) && !defined(WIN32)
# define WIN32 1 # define WIN32 1
#endif #endif
#if WIN32 && !__CYGWIN32__ #if WIN32
# include "beecrypt/win.h" # if !__CYGWIN32__
# include "beecrypt/win.h"
# else
# include "beecrypt/gnu.h"
# endif
# ifdef BEECRYPT_DLL_EXPORT # ifdef BEECRYPT_DLL_EXPORT
# define BEECRYPTAPI __declspec(dllexport) # define BEECRYPTAPI __declspec(dllexport)
# else # else
# define BEECRYPTAPI __declspec(dllimport) # define BEECRYPTAPI __declspec(dllimport)
# endif # endif
# ifdef BEECRYPT_CXX_DLL_EXPORT # ifdef BEECRYPT_CXX_DLL_EXPORT
# define BEECRYPTCXXAPI __declspec(dllexport) # define BEECRYPTCXXAPI __declspec(dllexport)
# define BEECRYPTCXXTEMPLATE # define BEECRYPTCXXTEMPLATE
# else # else
# define BEECRYPTCXXAPI __declspec(dllimport) # define BEECRYPTCXXAPI __declspec(dllimport)
 End of changes. 1 change blocks. 
2 lines changed or deleted 6 lines changed or added


 endianness.h   endianness.h 
skipping to change at line 106 skipping to change at line 106
((n & ((uint64_t) 0xff) << 32) >> 8) | ((n & ((uint64_t) 0xff) << 32) >> 8) |
((n & ((uint64_t) 0xff) << 40) >> 24) | ((n & ((uint64_t) 0xff) << 40) >> 24) |
((n & ((uint64_t) 0xff) << 48) >> 40) | ((n & ((uint64_t) 0xff) << 48) >> 40) |
((n & ((uint64_t) 0xff) << 56) >> 56) ); ((n & ((uint64_t) 0xff) << 56) >> 56) );
} }
# define swapu64(n) _swapu64(n) # define swapu64(n) _swapu64(n)
# endif # endif
#else #else
BEECRYPTAPI
int16_t swap16 (int16_t); int16_t swap16 (int16_t);
BEECRYPTAPI
uint16_t swapu16(uint16_t); uint16_t swapu16(uint16_t);
BEECRYPTAPI
int32_t swap32 (int32_t); int32_t swap32 (int32_t);
BEECRYPTAPI
uint32_t swapu32(uint32_t); uint32_t swapu32(uint32_t);
BEECRYPTAPI
int64_t swap64 (int64_t); int64_t swap64 (int64_t);
BEECRYPTAPI
uint64_t swapu64(uint64_t); uint64_t swapu64(uint64_t);
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
 End of changes. 6 change blocks. 
0 lines changed or deleted 6 lines changed or added


 gnu.h   gnu.h 
skipping to change at line 33 skipping to change at line 33
#include <inttypes.h> #include <inttypes.h>
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <dlfcn.h> #include <dlfcn.h>
#include <asm/byteorder.h>
typedef pthread_cond_t bc_cond_t; typedef pthread_cond_t bc_cond_t;
typedef pthread_mutex_t bc_mutex_t; typedef pthread_mutex_t bc_mutex_t;
typedef pthread_t bc_thread_t; typedef pthread_t bc_thread_t;
#if defined(__GNUC__) #if defined(__GNUC__)
# if !defined(__GNUC_PREREQ__) # if !defined(__GNUC_PREREQ__)
# define __GNUC_PREREQ__(maj, min) (__GNUC__ > (maj) || __GNUC__ == (maj) && __GNUC_MINOR__ >= (min)) # define __GNUC_PREREQ__(maj, min) (__GNUC__ > (maj) || __GNUC__ == (maj) && __GNUC_MINOR__ >= (min))
# endif # endif
#else #else
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added


 win.h   win.h 
skipping to change at line 137 skipping to change at line 137
typedef unsigned __int64 uint64_t; typedef unsigned __int64 uint64_t;
typedef long off_t; typedef long off_t;
#endif #endif
#define MP_WBITS 32U #define MP_WBITS 32U
typedef HANDLE bc_cond_t; typedef HANDLE bc_cond_t;
typedef HANDLE bc_mutex_t; typedef HANDLE bc_mutex_t;
typedef DWORD bc_thread_t; typedef HANDLE bc_thread_t;
#endif #endif
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 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/