Files
envi-code/SourceCode/Code2026/CoreLibrary/HGRID/mgdecl.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

78 lines
2.2 KiB
C++

////////////////////////////////////////////////////////////////////////////////
//
// File: mgdecl.h
// Created by: Jerzy Majewski - jmajewsk@meil.pw.edu.pl
// Modified by:
//
// Copyright notice:
// Copyright (C) 2000-2003 Jerzy Majewski
//
// This is free software. You can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation.
//
// This software is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY. See the GNU Lesser General Public License
// for more details.
//
////////////////////////////////////////////////////////////////////////////////
#ifndef __MGDECL_H__
#define __MGDECL_H__
// MS VC++ warning 4114 disabled
#ifdef WIN32
#pragma warning(disable: 4114)
#pragma warning(disable: 4786)
#pragma warning(disable: 4788)
#endif
//////////////////////////////////////////////////////////////////////
// C includes
//////////////////////////////////////////////////////////////////////
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
//////////////////////////////////////////////////////////////////////
// C++ includes
//////////////////////////////////////////////////////////////////////
// none
#include "stldecl.h" // includes files STL
//////////////////////////////////////////////////////////////////////
// definitions of basic types
//////////////////////////////////////////////////////////////////////
// definintion of MGNEW which does not throw exception
#define MGNEW new // old standard
//#define MGNEW new(nothrow) // recent standard
// definition of basic types
typedef double MGFloat;
typedef int MGInt;
typedef std::string MGString;
typedef std::vector<MGFloat> MGFloatArr;
typedef std::vector<MGInt> MGIntArr;
//////////////////////////////////////////////////////////////////////
// auxiliary objects
//////////////////////////////////////////////////////////////////////
#include "mgexcept.h" // file with objects and macros used for exception handling
#include "mgconst.h" // file with definitions of constant values
#include "dimension.h" // file with definition of dimension
#endif // __MGDECL_H__