Browse Source

Merge pull request #752 from roubert/issue725

Replace defined(COMPILER_GCC) with defined(__GNUC__).
pull/755/head
roes 11 years ago
committed by Fredrik Roubert
parent
commit
c6d49666b6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      cpp/src/phonenumbers/base/basictypes.h
  2. +1
    -1
      tools/cpp/src/base/basictypes.h

+ 1
- 1
cpp/src/phonenumbers/base/basictypes.h View File

@ -205,7 +205,7 @@ struct CompileAssert {
// is important for some other reason.)
// Use like:
// int x ALLOW_UNUSED = ...;
#if defined(COMPILER_GCC)
#if defined(__GNUC__)
#define ALLOW_UNUSED __attribute__((unused))
#else
#define ALLOW_UNUSED


+ 1
- 1
tools/cpp/src/base/basictypes.h View File

@ -246,7 +246,7 @@ struct CompileAssert {
// is important for some other reason.)
// Use like:
// int x ALLOW_UNUSED = ...;
#if defined(COMPILER_GCC)
#if defined(__GNUC__)
#define ALLOW_UNUSED __attribute__((unused))
#else
#define ALLOW_UNUSED


Loading…
Cancel
Save