Skip to content

Commit

Permalink
#5 - 2019+
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyg committed Feb 2, 2025
1 parent 51ef8e8 commit 0023180
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
13 changes: 13 additions & 0 deletions libw32/msvc_2019/utime.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef LIBW32_MSVC_UTIME_H_INCLUDED
#define LIBW32_MSVC_UTIME_H_INCLUDED
#include <edidentifier.h>
__CIDENT_RCSID(gr_libw32_msvc_utime_h,"$Id: utime.h,v 1.1 2025/02/02 14:15:31 cvsuser Exp $")
__CPRAGMA_ONCE

/* -*- mode: c; indent-width: 4; -*- */

#if (_MSC_VER >= 1800)
#include <sys/utime.h>
#endif

#endif /*LIBW32_MSVC_UTIME_H_INCLUDED*/
11 changes: 8 additions & 3 deletions makelib.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/perl
# $Id: makelib.in,v 1.14 2025/02/02 08:47:32 cvsuser Exp $
# $Id: makelib.in,v 1.15 2025/02/02 14:25:35 cvsuser Exp $
# -*- mode: perl; tabs: 8; indent-width: 4; -*-
# makelib configuration
#
Expand Down Expand Up @@ -146,7 +146,8 @@ Configure()
################################################################################
# Visual studio

if ($TOOLCHAIN =~ /^vs/) {
if ($TOOLCHAIN =~ /^vs(\d+)/) {
my $version = int($1); # vs140 etc

set_msvc_runtime('dynamic', '$(RTSUFFIX)');

Expand All @@ -161,7 +162,11 @@ Configure()
add_define('LIBW32_STATIC'); # libw32 bindings

add_xinclude('$(ROOT)/libw32'); # Extra includes; C and compiler tests.
add_xinclude('$(ROOT)/libw32/msvc'); # MSVC specials
if ($version >= 160) { # MSVC specials
add_xinclude('$(ROOT)/libw32/msvc_2019'); # 2019+
} else {
add_xinclude('$(ROOT)/libw32/msvc'); # legacy
}
# add_application_library('libw32.lib');
add_application_library('libw32_static.lib');
}
Expand Down

0 comments on commit 0023180

Please sign in to comment.