It has been pointed out that the wording of the license of this library is not entirely clear. The term "dual licensing" usually refers to a licence choice of two licenses "LICENSE1 _or_ LICENSE2. Instead the license of this library claimed "LICENSE1 _and_ LICENSE2". After an internal discussion with @metajack and @pasis it was made clear that the initial idea was to dual license the library in the usual way. This was also made clear by jack on the ML in the past [0]. As of jack, these licensing terms originated from jquery, which also used the 'and' version in the past and has since been corrected [1]. This patch changes the license terms to 'MIT or GPLv3' and also adds SPDX headers [2]. [0] https://groups.google.com/g/libstrophe/c/JkFgr601JQc [1] https://stackoverflow.com/q/2758409 [2] https://spdx.org Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
/* SPDX-License-Identifier: MIT OR GPL-3.0-only */
|
|
/* ostypes.h
|
|
** strophe XMPP client library -- type definitions for platforms
|
|
** without stdint.h
|
|
**
|
|
** Copyright (C) 2005-2009 Collecta, Inc.
|
|
**
|
|
** This software is provided AS-IS with no warranty, either express
|
|
** or implied.
|
|
**
|
|
** This program is dual licensed under the MIT or GPLv3 licenses.
|
|
*/
|
|
|
|
/** @file
|
|
* Type definitions for platforms without stdint.h.
|
|
*/
|
|
|
|
#ifndef __LIBSTROPHE_OSTYPES_H__
|
|
#define __LIBSTROPHE_OSTYPES_H__
|
|
|
|
#include <stddef.h> /* size_t */
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1600
|
|
typedef signed char int8_t;
|
|
typedef short int int16_t;
|
|
typedef int int32_t;
|
|
typedef __int64 int64_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
typedef unsigned short int uint16_t;
|
|
typedef unsigned int uint32_t;
|
|
typedef unsigned __int64 uint64_t;
|
|
|
|
#ifndef UINT16_MAX
|
|
#define UINT16_MAX ((uint16_t)0xffff)
|
|
#endif /* UINT16_MAX */
|
|
#ifndef UINT32_MAX
|
|
#define UINT32_MAX ((uint32_t)0xffffffff)
|
|
#endif /* UINT32_MAX */
|
|
#ifndef SIZE_MAX
|
|
#define SIZE_MAX UINT32_MAX
|
|
#endif /* SIZE_MAX */
|
|
|
|
#else
|
|
#include <stdint.h>
|
|
#endif
|
|
|
|
#endif /* __LIBSTROPHE_OSTYPES_H__ */
|