Skip to content

Commit

Permalink
fixes for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Feb 15, 2024
1 parent bc08cb9 commit 526129e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion include/riccati/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ namespace riccati {
#endif
#ifndef RICCATI_COLD_PATH
#define RICCATI_COLD_PATH
#endif

#ifndef RICCATI_NO_INLINE
#define RICCATI_NO_INLINE __attribute__((noinline))
Expand All @@ -47,6 +46,17 @@ namespace riccati {
#define RICCATI_PURE __attribute__((pure))
#endif

#else
#define likely(x) (x)
#define unlikely(x) (x)
#define RICCATI_COLD_PATH
#define RICCATI_NO_INLINE
#define RICCATI_ALWAYS_INLINE
#define RICCATI_PURE
#endif



} // namespace riccati

#endif

0 comments on commit 526129e

Please sign in to comment.