Skip to content

Commit

Permalink
Update Elf.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx authored Sep 3, 2024
1 parent ac6f238 commit f25d4ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions folly/debugging/symbolizer/Elf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@

#if defined(__ELF_NATIVE_CLASS)
#define FOLLY_ELF_NATIVE_CLASS __ELF_NATIVE_CLASS
#elif defined(__ANDROID__)
#define FOLLY_ELF_NATIVE_CLASS __WORDSIZE
#elif defined(__LP64__)
#elif defined(__GNUC__)
#if defined(__LP64__)
#define FOLLY_ELF_NATIVE_CLASS 64
#else
#define FOLLY_ELF_NATIVE_CLASS 32
#endif
#elif defined(__ANDROID__)
#define FOLLY_ELF_NATIVE_CLASS __WORDSIZE
#endif // __ELF_NATIVE_CLASS

namespace folly {
Expand Down

0 comments on commit f25d4ba

Please sign in to comment.