Skip to content

Commit 2cd5307

Browse files
authored
Fix Windows Simulator demo build failures by adding missing windows.h includes (#1305)
* Fix windows.h include * Update link * Fix python error * Remove not working URL
1 parent 22c095e commit 2cd5307

7 files changed

Lines changed: 13 additions & 9 deletions

File tree

‎source/portable/NetworkInterface/DriverSAM/gmac_SAM.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343

4444
/*
45-
* Support and FAQ: visit <a href="https://www.microchip.com/en-us/support/design-help">Atmel Support</a>
45+
* Support and FAQ: visit Microchip Support website
4646
*/
4747

4848

‎source/portable/NetworkInterface/DriverSAM/gmac_SAM.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343

4444
/*
45-
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
45+
* Support and FAQ: visit Microchip Support website
4646
*/
4747

4848
#ifndef GMAC_H_INCLUDED

‎source/portable/NetworkInterface/ksz8851snl/ksz8851snl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*/
4444

4545
/*
46-
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
46+
* Support and FAQ: visit Microchip Support website
4747
*/
4848

4949
/* FreeRTOS includes. */

‎source/portable/NetworkInterface/ksz8851snl/ksz8851snl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*/
4444

4545
/*
46-
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
46+
* Support and FAQ: visit Microchip Support website
4747
*/
4848

4949
#ifndef KSZ8851SNL_H_INCLUDED

‎source/portable/NetworkInterface/ksz8851snl/ksz8851snl_reg.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*/
4444

4545
/*
46-
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
46+
* Support and FAQ: visit Microchip Support website
4747
*/
4848

4949
#ifndef KSZ8851SNL_REG_H_INCLUDED

‎source/portable/NetworkInterface/libslirp/MBuffNetworkInterface.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727

2828
#include <stdlib.h>
2929

30+
#if defined( _WIN32 )
31+
#include <windows.h>
32+
#endif
33+
3034
/* FreeRTOS includes. */
3135
#include "FreeRTOS.h"
3236
#include "list.h"

‎test/cbmc/proofs/make_common_makefile.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import argparse
3131

3232
def cleanup_whitespace(string):
33-
return re.sub('\s+', ' ', string.strip())
33+
return re.sub(r'\s+', ' ', string.strip())
3434

3535
################################################################
3636
# Operating system specific values
@@ -83,9 +83,9 @@ def patch_compile_output(opsys, line, key, value):
8383

8484
if key in ["COMPILE_ONLY", "COMPILE_LINK"] and value is not None:
8585
if value[-1] == '/Fo':
86-
return re.sub('/Fo\s+', '/Fo', line)
86+
return re.sub(r'/Fo\s+', '/Fo', line)
8787
if value[-1] == '/Fe':
88-
return re.sub('/Fe\s+', '/Fe', line)
88+
return re.sub(r'/Fe\s+', '/Fe', line)
8989
return line
9090

9191
################################################################
@@ -181,7 +181,7 @@ def write_makefile(opsys, template, defines, makefile):
181181
with open(template) as _template:
182182
for line in _template:
183183
line = patch_path_separator(opsys, line)
184-
keys = re.findall('@(\w+)@', line)
184+
keys = re.findall(r'@(\w+)@', line)
185185
values = [find_definition(key, defines) for key in keys]
186186
for key, value in zip(keys, values):
187187
if value is not None:

0 commit comments

Comments
 (0)