Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

un/likely macro conflicts #13

Open
david8dixon opened this issue Jan 18, 2019 · 0 comments
Open

un/likely macro conflicts #13

david8dixon opened this issue Jan 18, 2019 · 0 comments

Comments

@david8dixon
Copy link

Had to do this in a super project to make it place nice with disco:

#ifdef __GNUC__
  #ifndef likely
    #define likely(x)     __builtin_expect((x),1)
  #endif
  #ifndef unlikely
    #define unlikely(x)   __builtin_expect((x),0)
  #endif
#else
  #ifndef likely
#define likely(x)    (x)
  #endif
  #ifndef unlikely
#define unlikely(x)    (x)
  #endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant