Merge pull request #24 from pah/fixes/travis-ci
Prepare travis-ci.org integration, fix build on Ubuntu 12.04 LTS
This commit is contained in:
commit
32b930529a
26
.travis.yml
Normal file
26
.travis.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
language: cpp
|
||||||
|
|
||||||
|
compiler:
|
||||||
|
- clang
|
||||||
|
- gcc
|
||||||
|
|
||||||
|
env:
|
||||||
|
- config=debug64 config_suffix=debug_x64_gmake
|
||||||
|
- config=release64 config_suffix=release_x64_gmake
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- sudo add-apt-repository -y ppa:codegear/release
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install -y premake4
|
||||||
|
|
||||||
|
install: true
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- cd build
|
||||||
|
- premake4 'gmake'
|
||||||
|
- cd "${TRAVIS_BUILD_DIR}"
|
||||||
|
|
||||||
|
script:
|
||||||
|
- make -C build/gmake -f test.make unittest
|
||||||
|
- cd bin
|
||||||
|
- ./unittest_${config_suffix}
|
@ -10,13 +10,19 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// RAPIDJSON_NO_INT64DEFINE
|
// RAPIDJSON_NO_INT64DEFINE
|
||||||
|
|
||||||
// Here defines int64_t and uint64_t types in global namespace.
|
// Here defines int64_t and uint64_t types in global namespace as well as the
|
||||||
|
// (U)INT64_C constant macros.
|
||||||
// If user have their own definition, can define RAPIDJSON_NO_INT64DEFINE to disable this.
|
// If user have their own definition, can define RAPIDJSON_NO_INT64DEFINE to disable this.
|
||||||
#ifndef RAPIDJSON_NO_INT64DEFINE
|
#ifndef RAPIDJSON_NO_INT64DEFINE
|
||||||
|
#ifndef __STDC_CONSTANT_MACROS
|
||||||
|
# define __STDC_CONSTANT_MACROS 1 // required by C++ standard
|
||||||
|
#endif
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
#include "msinttypes/stdint.h"
|
||||||
#include "msinttypes/inttypes.h"
|
#include "msinttypes/inttypes.h"
|
||||||
#else
|
#else
|
||||||
// Other compilers should have this.
|
// Other compilers should have this.
|
||||||
|
#include <stdint.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#endif
|
#endif
|
||||||
#endif // RAPIDJSON_NO_INT64TYPEDEF
|
#endif // RAPIDJSON_NO_INT64TYPEDEF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user