Artelnics / opennn

OpenNN - Open Neural Networks Library
http://www.opennn.net
GNU Lesser General Public License v3.0
1.12k stars 354 forks source link

Preventing '_CRT_SECURE_NO_WARNINGS': macro redefinition error #292

Open shleym2000 opened 5 months ago

shleym2000 commented 5 months ago

Visual Studio gives me '_CRT_SECURE_NO_WARNINGS': macro redefinition error.

This error can easily be avoided if the following line

https://github.com/Artelnics/opennn/blob/4708cac8f51db68f6ecf6c6e0f09eb30db04ac1f/opennn/config.h#L22

would be surrounded by the #ifndef protection

#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS 
#endif