/* NanoGUI was developed by Wenzel Jakob . The widget drawing code is based on the NanoVG demo application by Mikko Mononen. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE.txt file. */ /** * \file nanogui/compat.h * * \brief Compatibility layer for ``snprintf`` across platforms. */ #pragma once #include #if defined(_MSC_VER) && !defined(DOXYGEN_DOCUMENTATION_BUILD) #define NANOGUI_SNPRINTF _snprintf #else /// Platform dependent snprintf (``_snprintf`` for MSVC, ``snprintf`` otherwise). #define NANOGUI_SNPRINTF snprintf #endif