serial  1.1.0
Cross-platform, serial port library written in C++
 All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Defines
include/serial/v8stdint.h
Go to the documentation of this file.
00001 // This header is from the v8 google project: 
00002 // http://code.google.com/p/v8/source/browse/trunk/include/v8stdint.h
00003 
00004 // Copyright 2012 the V8 project authors. All rights reserved.
00005 // Redistribution and use in source and binary forms, with or without
00006 // modification, are permitted provided that the following conditions are
00007 // met:
00008 //
00009 //     * Redistributions of source code must retain the above copyright
00010 //       notice, this list of conditions and the following disclaimer.
00011 //     * Redistributions in binary form must reproduce the above
00012 //       copyright notice, this list of conditions and the following
00013 //       disclaimer in the documentation and/or other materials provided
00014 //       with the distribution.
00015 //     * Neither the name of Google Inc. nor the names of its
00016 //       contributors may be used to endorse or promote products derived
00017 //       from this software without specific prior written permission.
00018 //
00019 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00022 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00023 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00024 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00025 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00026 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00027 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00028 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00029 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 
00031 // Load definitions of standard types.
00032 
00033 #ifndef V8STDINT_H_
00034 #define V8STDINT_H_
00035 
00036 #include <stddef.h>
00037 #include <stdio.h>
00038 
00039 #if defined(_WIN32) && !defined(__MINGW32__)
00040 
00041 typedef signed char int8_t;
00042 typedef unsigned char uint8_t;
00043 typedef short int16_t;  // NOLINT
00044 typedef unsigned short uint16_t;  // NOLINT
00045 typedef int int32_t;
00046 typedef unsigned int uint32_t;
00047 typedef __int64 int64_t;
00048 typedef unsigned __int64 uint64_t;
00049 // intptr_t and friends are defined in crtdefs.h through stdio.h.
00050 
00051 #else
00052 
00053 #include <stdint.h>
00054 
00055 #endif
00056 
00057 #endif  // V8STDINT_H_