MSVC8 Warning Fixes
This commit is contained in:
parent
4eccad2c27
commit
26a0767737
|
@ -25,14 +25,28 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include<stdio.h>
|
#ifdef _MSC_VER
|
||||||
#include<stdlib.h>
|
#if _MSC_VER >= 1400
|
||||||
#include<string.h>
|
/* Disable deprecation warnings concerning unsafe CRT functions */
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE
|
||||||
|
|
||||||
|
/* Replace the POSIX function with ISO C++ conformant one as it is now deprecated */
|
||||||
|
#define fileno _fileno
|
||||||
|
|
||||||
|
/* Disable deprecation warnings because MSVC8 seemingly thinks ISO C++ conformant functions are deprecated. */
|
||||||
|
#pragma warning (disable : 4996)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <sys/types.h> /* for fstat */
|
#include <sys/types.h> /* for fstat */
|
||||||
#include <sys/stat.h> /* for fstat */
|
#include <sys/stat.h> /* for fstat */
|
||||||
|
|
||||||
//typedef int uint32_t;
|
//typedef int uint32_t;
|
||||||
|
|
||||||
|
|
||||||
#define SEGMENT_RECORD_LENGTH 3
|
#define SEGMENT_RECORD_LENGTH 3
|
||||||
#define STANDARD_RECORD_LENGTH 3
|
#define STANDARD_RECORD_LENGTH 3
|
||||||
#define ORG_RECORD_LENGTH 4
|
#define ORG_RECORD_LENGTH 4
|
||||||
|
|
Loading…
Reference in New Issue
Block a user