Rough and ready port of axTLS

Committer:
ashleymills
Date:
Mon May 13 18:15:18 2013 +0000
Revision:
0:5a29fd060ac8
initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ashleymills 0:5a29fd060ac8 1 /*
ashleymills 0:5a29fd060ac8 2 * Copyright (c) 2012, Cameron Rich
ashleymills 0:5a29fd060ac8 3 *
ashleymills 0:5a29fd060ac8 4 * All rights reserved.
ashleymills 0:5a29fd060ac8 5 *
ashleymills 0:5a29fd060ac8 6 * Redistribution and use in source and binary forms, with or without
ashleymills 0:5a29fd060ac8 7 * modification, are permitted provided that the following conditions are met:
ashleymills 0:5a29fd060ac8 8 *
ashleymills 0:5a29fd060ac8 9 * * Redistributions of source code must retain the above copyright notice,
ashleymills 0:5a29fd060ac8 10 * this list of conditions and the following disclaimer.
ashleymills 0:5a29fd060ac8 11 * * Redistributions in binary form must reproduce the above copyright notice,
ashleymills 0:5a29fd060ac8 12 * this list of conditions and the following disclaimer in the documentation
ashleymills 0:5a29fd060ac8 13 * and/or other materials provided with the distribution.
ashleymills 0:5a29fd060ac8 14 * * Neither the name of the axTLS project nor the names of its contributors
ashleymills 0:5a29fd060ac8 15 * may be used to endorse or promote products derived from this software
ashleymills 0:5a29fd060ac8 16 * without specific prior written permission.
ashleymills 0:5a29fd060ac8 17 *
ashleymills 0:5a29fd060ac8 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
ashleymills 0:5a29fd060ac8 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
ashleymills 0:5a29fd060ac8 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
ashleymills 0:5a29fd060ac8 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
ashleymills 0:5a29fd060ac8 22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
ashleymills 0:5a29fd060ac8 23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
ashleymills 0:5a29fd060ac8 24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
ashleymills 0:5a29fd060ac8 25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
ashleymills 0:5a29fd060ac8 26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
ashleymills 0:5a29fd060ac8 27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
ashleymills 0:5a29fd060ac8 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ashleymills 0:5a29fd060ac8 29 */
ashleymills 0:5a29fd060ac8 30
ashleymills 0:5a29fd060ac8 31 /**
ashleymills 0:5a29fd060ac8 32 * @file os_int.h
ashleymills 0:5a29fd060ac8 33 *
ashleymills 0:5a29fd060ac8 34 * Ensure a consistent bit size
ashleymills 0:5a29fd060ac8 35 */
ashleymills 0:5a29fd060ac8 36
ashleymills 0:5a29fd060ac8 37 #ifndef HEADER_OS_INT_H
ashleymills 0:5a29fd060ac8 38 #define HEADER_OS_INT_H
ashleymills 0:5a29fd060ac8 39
ashleymills 0:5a29fd060ac8 40 #ifdef __cplusplus
ashleymills 0:5a29fd060ac8 41 extern "C" {
ashleymills 0:5a29fd060ac8 42 #endif
ashleymills 0:5a29fd060ac8 43
ashleymills 0:5a29fd060ac8 44 #if defined(WIN32)
ashleymills 0:5a29fd060ac8 45 typedef UINT8 uint8_t;
ashleymills 0:5a29fd060ac8 46 typedef INT8 int8_t;
ashleymills 0:5a29fd060ac8 47 typedef UINT16 uint16_t;
ashleymills 0:5a29fd060ac8 48 typedef INT16 int16_t;
ashleymills 0:5a29fd060ac8 49 typedef UINT32 uint32_t;
ashleymills 0:5a29fd060ac8 50 typedef INT32 int32_t;
ashleymills 0:5a29fd060ac8 51 typedef UINT64 uint64_t;
ashleymills 0:5a29fd060ac8 52 typedef INT64 int64_t;
ashleymills 0:5a29fd060ac8 53 #else /* Not Win32 */
ashleymills 0:5a29fd060ac8 54
ashleymills 0:5a29fd060ac8 55 #ifdef CONFIG_PLATFORM_SOLARIS
ashleymills 0:5a29fd060ac8 56 #include <inttypes.h>
ashleymills 0:5a29fd060ac8 57 #else
ashleymills 0:5a29fd060ac8 58 #include <stdint.h>
ashleymills 0:5a29fd060ac8 59 #endif /* Not Solaris */
ashleymills 0:5a29fd060ac8 60
ashleymills 0:5a29fd060ac8 61 #endif /* Not Win32 */
ashleymills 0:5a29fd060ac8 62
ashleymills 0:5a29fd060ac8 63 #ifdef __cplusplus
ashleymills 0:5a29fd060ac8 64 }
ashleymills 0:5a29fd060ac8 65 #endif
ashleymills 0:5a29fd060ac8 66
ashleymills 0:5a29fd060ac8 67 #endif