Skip to content

Commit

Permalink
Visual Studio 2015 (_MSC_VER == 1900) defines the snprintf function, …
Browse files Browse the repository at this point in the history
…so avoid defining it in those cases. (#483)
  • Loading branch information
macourteau authored and plusvic committed Aug 1, 2016
1 parent 4cf84a5 commit ab6d748
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libyara/libyara.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif

#if defined(_WIN32) || defined(__CYGWIN__)
#if !defined(_MSC_VER) || (defined(_MSC_VER) && (_MSC_VER < 1900))
#define snprintf _snprintf
#endif
#endif


YR_THREAD_STORAGE_KEY tidx_key;
Expand Down

0 comments on commit ab6d748

Please sign in to comment.