00001 // Copyright 2010 Complete Genomics, Inc. 00002 // 00003 // Licensed under the Apache License, Version 2.0 (the "License"); you 00004 // may not use this file except in compliance with the License. You 00005 // may obtain a copy of the License at 00006 // 00007 // http://www.apache.org/licenses/LICENSE-2.0 00008 // 00009 // Unless required by applicable law or agreed to in writing, software 00010 // distributed under the License is distributed on an "AS IS" BASIS, 00011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 00012 // implied. See the License for the specific language governing 00013 // permissions and limitations under the License. 00014 00015 #ifndef CGATOOLS_CORE_HPP_ 00016 #define CGATOOLS_CORE_HPP_ 1 00017 00021 00022 #if defined(_WIN32) || defined(_WIN64) 00027 #ifndef CGA_USE_WIN_API 00028 #define CGA_USE_WIN_API 1 00029 #endif 00030 00033 #ifndef NOMINMAX 00034 #define NOMINMAX 00035 #endif 00036 #endif 00037 00039 #ifndef __STDC_CONSTANT_MACROS 00040 #define __STDC_CONSTANT_MACROS 1 00041 #endif 00042 00043 #include <boost/cstdint.hpp> 00044 #include <limits> 00045 00047 namespace cgatools { 00048 00049 typedef boost::int8_t int8_t; 00050 typedef boost::int16_t int16_t; 00051 typedef boost::int32_t int32_t; 00052 typedef boost::int64_t int64_t; 00053 00054 typedef boost::uint8_t uint8_t; 00055 typedef boost::uint16_t uint16_t; 00056 typedef boost::uint32_t uint32_t; 00057 typedef boost::uint64_t uint64_t; 00058 00059 } // cgatools 00060 00061 #endif // CGATOOLS_CORE_HPP_