Skip to content

Commit

Permalink
Disable windows warnings for strdup(), etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanvalur committed Apr 20, 2021
1 parent fa0f29f commit f995a71
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

/* turn of windows warnings for _strcmp etc. */
#define _CRT_NONSTDC_NO_DEPRECATE

#include "fmacros.h"
#include "alloc.h"
Expand Down
3 changes: 3 additions & 0 deletions async.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

/* turn of windows warnings for _strcmp etc. */
#define _CRT_NONSTDC_NO_DEPRECATE

#include "fmacros.h"
#include "alloc.h"
#include <stdlib.h>
Expand Down
3 changes: 3 additions & 0 deletions read.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

/* turn of windows warnings for _strcmp etc. */
#define _CRT_NONSTDC_NO_DEPRECATE

#include "fmacros.h"
#include <string.h>
#include <stdlib.h>
Expand Down

0 comments on commit f995a71

Please sign in to comment.