| OLD | NEW |
| 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
| 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 * | 4 * |
| 5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
| 6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
| 7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
| 8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
| 9 * | 9 * |
| 10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 */ | 62 */ |
| 63 #include <inttypes.h> | 63 #include <inttypes.h> |
| 64 | 64 |
| 65 #ifndef __cplusplus | 65 #ifndef __cplusplus |
| 66 typedef int bool; | 66 typedef int bool; |
| 67 #define true 1 | 67 #define true 1 |
| 68 #define false 0 | 68 #define false 0 |
| 69 #endif | 69 #endif |
| 70 #elif defined(bsdi) || defined(FREEBSD) || defined(OPENBSD) | 70 #elif defined(bsdi) || defined(FREEBSD) || defined(OPENBSD) |
| 71 /* | 71 /* |
| 72 * BSD/OS, FreeBSD, and OpenBSD ship sys/types.h that define int32_t and | 72 * BSD/OS, FreeBSD, and OpenBSD ship sys/types.h that define int32_t and |
| 73 * u_int32_t. | 73 * u_int32_t. |
| 74 */ | 74 */ |
| 75 #include <sys/types.h> | 75 #include <sys/types.h> |
| 76 | 76 |
| 77 /* | 77 /* |
| 78 * BSD/OS ships no header that defines uint32_t, nor bool (for C) | 78 * BSD/OS ships no header that defines uint32_t, nor bool (for C) |
| 79 */ | 79 */ |
| 80 #if defined(bsdi) | 80 #if defined(bsdi) |
| 81 typedef u_int32_t uint32_t; | 81 typedef u_int32_t uint32_t; |
| 82 typedef u_int64_t uint64_t; | 82 typedef u_int64_t uint64_t; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 112 * works. | 112 * works. |
| 113 */ | 113 */ |
| 114 #define bool int | 114 #define bool int |
| 115 #define true 1 | 115 #define true 1 |
| 116 #define false 0 | 116 #define false 0 |
| 117 #endif | 117 #endif |
| 118 #endif | 118 #endif |
| 119 #endif | 119 #endif |
| 120 | 120 |
| 121 #endif /* nptypes_h_ */ | 121 #endif /* nptypes_h_ */ |
| OLD | NEW |