فهرست منبع

libobs/util: Remove old ifdefs

These defs inadvertently redefinine `std::strtoll` in C++ code
that includes the header, causing lots of problems. They only
serve to provide compatability with very old MSVC versions.
As such, they can just be removed entirely.
tt2468 4 سال پیش
والد
کامیت
3e4c275efc
1فایلهای تغییر یافته به همراه0 افزوده شده و 7 حذف شده
  1. 0 7
      libobs/util/platform.h

+ 0 - 7
libobs/util/platform.h

@@ -197,13 +197,6 @@ EXPORT bool os_get_proc_memory_usage(os_proc_memory_usage_t *usage);
 EXPORT uint64_t os_get_proc_resident_size(void);
 EXPORT uint64_t os_get_proc_virtual_size(void);
 
-#ifdef _MSC_VER
-#define strtoll _strtoi64
-#if _MSC_VER < 1900
-#define snprintf _snprintf
-#endif
-#endif
-
 /* clang-format off */
 #ifdef __APPLE__
 # define ARCH_BITS 64