source: sasview/sansmodels/src/libigor/StandardHeaders.h @ 385d464

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 385d464 was ae3ce4e, checked in by Mathieu Doucet <doucetm@…>, 17 years ago

Moving sansmodels to trunk

  • Property mode set to 100644
File size: 562 bytes
Line 
1/*
2 *  StandardHeaders.h
3 *  SANSAnalysis
4 *
5 *  Created by Andrew Jackson on 4/23/07.
6 *
7 */
8
9#include <math.h>
10#include <ctype.h>
11
12/**
13 * VC7 does not have fmax and trunc.
14 * Define them here.
15 * Added by M. Doucet (4/25/07)
16 */
17
18#ifdef _MSC_VER
19
20#ifndef _INC_FMINMAX
21#define _INC_FMINMAX
22
23#ifndef fmax
24#define fmax(a,b)            (((a) > (b)) ? (a) : (b))
25#endif
26
27#ifndef fmin
28#define fmin(a,b)            (((a) < (b)) ? (a) : (b))
29#endif
30
31#ifndef trunc
32#define trunc(a)             (((a) < (0)) ? (ceil(a)) : (floor(a)))
33#endif
34
35#endif
36
37#endif
38
39   
40
41   
Note: See TracBrowser for help on using the repository browser.