diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2006-03-30 14:35:09 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2006-03-30 14:35:09 +0000 |
| commit | 74b768ba7a59fb5ae46be778f5274285757efd3e (patch) | |
| tree | a73ecab20f4f8a778222ae442930d122b16772e0 /src | |
| parent | 505897a9f6a7097759a63ead75208624a393e14a (diff) | |
| download | PROJ-74b768ba7a59fb5ae46be778f5274285757efd3e.tar.gz PROJ-74b768ba7a59fb5ae46be778f5274285757efd3e.zip | |
bug 1145: avoid warnings on VC8.
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1329 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
| -rw-r--r-- | src/cs2cs.c | 6 | ||||
| -rw-r--r-- | src/gen_cheb.c | 2 | ||||
| -rw-r--r-- | src/p_series.c | 2 | ||||
| -rw-r--r-- | src/pj_strerrno.c | 3 | ||||
| -rw-r--r-- | src/projects.h | 12 |
5 files changed, 20 insertions, 5 deletions
diff --git a/src/cs2cs.c b/src/cs2cs.c index e94e71a8..abf62c30 100644 --- a/src/cs2cs.c +++ b/src/cs2cs.c @@ -29,6 +29,9 @@ ****************************************************************************** * * $Log$ + * Revision 1.9 2006/03/30 14:35:09 fwarmerdam + * bug 1145: avoid warnings on VC8. + * * Revision 1.8 2004/10/28 16:05:37 fwarmerdam * avoid using global variables from DLL * @@ -54,13 +57,12 @@ * New * */ - +#include "projects.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <math.h> -#include "projects.h" #include "emess.h" #define MAX_LINE 200 diff --git a/src/gen_cheb.c b/src/gen_cheb.c index e85305d8..92c7b9fd 100644 --- a/src/gen_cheb.c +++ b/src/gen_cheb.c @@ -3,10 +3,10 @@ static const char SCCSID[]="@(#)gen_cheb.c 4.9 95/09/23 GIE REL"; #endif #define PJ_LIB__ +#include "projects.h" #include <stdio.h> #include <string.h> #include <errno.h> -#include <projects.h> #include "emess.h" #ifndef COEF_LINE_MAX #define COEF_LINE_MAX 60 diff --git a/src/p_series.c b/src/p_series.c index 7c16a23d..a2b531df 100644 --- a/src/p_series.c +++ b/src/p_series.c @@ -2,9 +2,9 @@ #ifndef lint static const char SCCSID[]="@(#)p_series.c 4.6 95/08/19 GIE REL"; #endif +#include "projects.h" #include <stdio.h> #include <string.h> -#include <projects.h> #define NF 20 /* length of final format string */ #define CUT 60 /* check length of line */ void diff --git a/src/pj_strerrno.c b/src/pj_strerrno.c index 98b03405..4157ada0 100644 --- a/src/pj_strerrno.c +++ b/src/pj_strerrno.c @@ -2,10 +2,11 @@ #ifndef lint static const char SCCSID[]="@(#)pj_strerrno.c 4.12 94/05/25 GIE REL"; #endif +#include "projects.h" #include <stdio.h> #include <errno.h> #include <string.h> -#include <projects.h> + static char * pj_err_list[] = { "no arguments in initialization list", /* -1 */ diff --git a/src/projects.h b/src/projects.h index 28a4d7da..042fcd36 100644 --- a/src/projects.h +++ b/src/projects.h @@ -28,6 +28,9 @@ ****************************************************************************** * * $Log$ + * Revision 1.22 2006/03/30 14:35:09 fwarmerdam + * bug 1145: avoid warnings on VC8. + * * Revision 1.21 2004/10/28 16:08:13 fwarmerdam * added pj_get_*_ref() accessors * @@ -86,6 +89,15 @@ #ifndef PROJECTS_H #define PROJECTS_H +#ifdef _MSC_VER +# ifndef _CRT_SECURE_NO_DEPRECATE +# define _CRT_SECURE_NO_DEPRECATE +# endif +# ifndef _CRT_NONSTDC_NO_DEPRECATE +# define _CRT_NONSTDC_NO_DEPRECATE +# endif +#endif + /* standard inclusions */ #include <math.h> #include <stdio.h> |
