Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (C) 2013 Regents of the University of California. |
| 3 | * @author: Jeff Thompson <jefft0@remap.ucla.edu> |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NDN_COMMON_H |
| 8 | #define NDN_COMMON_H |
| 9 | |
| 10 | #include "../../config.h" |
| 11 | |
| 12 | // Need to define uint8_t. There may be no stdint.h because it is only part of the C standard since 1999. |
| 13 | #if HAVE_STDINT |
| 14 | #include <stdint.h> |
| 15 | #else |
| 16 | #endif |
| 17 | #ifndef _UINT8_T |
| 18 | #define _UINT8_T |
| 19 | typedef unsigned char uint8_t; |
| 20 | #endif |
| 21 | |
| 22 | #ifdef __cplusplus |
| 23 | extern "C" { |
| 24 | #endif |
| 25 | |
| 26 | |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } |
| 30 | #endif |
| 31 | |
| 32 | #endif |