Files called from SICServer should now compile under linux
This commit is contained in:
@@ -5,12 +5,13 @@
|
||||
#include "fortify.h"
|
||||
#endif
|
||||
|
||||
/* secure allocation stuff ---------------------------------- */
|
||||
/* secure allocation stuff ----------------------------------
|
||||
change these macros if you want to log dynamic memory access
|
||||
*/
|
||||
|
||||
#define NEW(PTR) ERR_SP(PTR=my_malloc(sizeof(*PTR),#PTR))
|
||||
|
||||
void *my_malloc(size_t size, const char *text);
|
||||
void my_free(void *ptr);
|
||||
#define NEW(PTR) ERR_SP(PTR=calloc(1,sizeof(*PTR)))
|
||||
#define MALLOC(SIZ) calloc(1,SIZ)
|
||||
#define FREE(PTR) free(PTR)
|
||||
|
||||
/* fortran interface stuff ----------------------------------
|
||||
|
||||
@@ -35,7 +36,9 @@ typedef struct { short size, dummy; char *text; } SysVmsChar;
|
||||
#define STR_TO_F(DST,SRC) str_npad(DST, SRC, DST##_len)
|
||||
|
||||
#else
|
||||
#error this machine is not supported
|
||||
|
||||
/* other machines are not yet supported */
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _SYS_UTIL_H_ */
|
||||
|
||||
Reference in New Issue
Block a user