Browse Source

Allow defining custom SDL_SINT64_C and SDL_UINT64_C macros (#11315)

Susko3 10 months ago
parent
commit
d0cf2c19d1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      include/SDL3/SDL_stdinc.h

+ 4 - 0
include/SDL3/SDL_stdinc.h

@@ -256,6 +256,8 @@ void *alloca(size_t);
      (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (C))) << 16) | \
      (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (D))) << 24))
 
+#if !(defined(SDL_SINT64_C) && defined(SDL_UINT64_C))
+
 #ifdef SDL_WIKI_DOCUMENTATION_SECTION
 
 /**
@@ -298,6 +300,8 @@ void *alloca(size_t);
 #define SDL_UINT64_C(c)  c ## ULL
 #endif
 
+#endif /* !(defined(SDL_SINT64_C) && defined(SDL_UINT64_C)) */
+
 /**
  *  \name Basic data types
  */