Skip to content

Commit 2d8a737

Browse files
committed
fix some MSVC warnings
1 parent 2300021 commit 2d8a737

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/exp2python/src/classes_python.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,16 @@ N350 ( August 31, 1993 ) of ISO 10303 TC184/SC4/WG7.
4949
#define PAD 1
5050
#define NOPAD 0
5151

52+
#if defined( _WIN32 ) || defined ( __WIN32__ )
53+
# define snprintf _snprintf
54+
#endif
55+
5256
int isAggregateType( const Type t );
5357
int isAggregate( Variable a );
5458
Variable VARis_type_shifter( Variable a );
5559
const char * ENTITYget_CORBAname( Entity ent );
5660
const char * GetTypeDescriptorName( Type t );
61+
void TYPEselect_lib_print( const Type type, FILE * f, Schema schema );
5762

5863
int multiple_inheritance = 1;
5964
int print_logging = 0;

src/exp2python/src/selects_python.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ extern int multiple_inheritance;
2323
**************************************************************************/
2424
#include <stdlib.h>
2525
#include "classes.h"
26+
#include <stdbool.h>
2627

28+
bool is_python_keyword( char * word );
2729
int isAggregateType( const Type t );
2830
char * generate_attribute_name( Variable a, char * out );
2931
void ATTRsign_access_methods( Variable a, FILE * file );

0 commit comments

Comments
 (0)