OLD | NEW |
---|---|
1 // Copyright (c) 2011, Google Inc. | 1 // Copyright (c) 2011, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
77 | 77 |
78 #elif defined(__APPLE__) | 78 #elif defined(__APPLE__) |
79 #include "libc_override_osx.h" | 79 #include "libc_override_osx.h" |
80 | 80 |
81 #elif defined(__GLIBC__) | 81 #elif defined(__GLIBC__) |
82 #include "libc_override_glibc.h" | 82 #include "libc_override_glibc.h" |
83 | 83 |
84 // Not all gcc systems necessarily support weak symbols, but all the | 84 // Not all gcc systems necessarily support weak symbols, but all the |
85 // ones I know of do, so for now just assume they all do. | 85 // ones I know of do, so for now just assume they all do. |
86 #elif defined(__GNUC__) | 86 #elif defined(__GNUC__) |
87 #if defined (__ANDROID__) | |
88 #include "libc_override_gcc_and_weak_bionic.h" | |
Dai Mikurube (NOT FULLTIME)
2013/05/08 14:53:25
(a comment in libc_override_gcc_and_weak_bionic.h.
bulach
2013/05/08 16:09:10
Done.
| |
89 #else | |
87 #include "libc_override_gcc_and_weak.h" | 90 #include "libc_override_gcc_and_weak.h" |
91 #endif | |
88 | 92 |
89 #else | 93 #else |
90 #error Need to add support for your libc/OS here | 94 #error Need to add support for your libc/OS here |
91 | 95 |
92 #endif | 96 #endif |
93 | 97 |
94 #endif // TCMALLOC_LIBC_OVERRIDE_INL_H_ | 98 #endif // TCMALLOC_LIBC_OVERRIDE_INL_H_ |
OLD | NEW |