lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I have made the follwing change to the file LMATHLIB.C in order to 
compile Lua 3.1 with Symantec C++ Version 7.5

#ifdef M_PI
/* Added for Symantec 7.5 which defines M_PI in terms of PI! */
#ifndef PI
#define PI                      M_PI
#endif
#else
#define PI          ((double)3.14159265358979323846)
#endif

This overcomes the situation where a circular definition removes all 
definition of PI.

John Fletcher
-------------------------------------------------------------------
Dr John P. Fletcher          Tel: (44) 121 359 3611 ext 4625
Department of Chemical Engineering and Applied Chemistry (CEAC),
Aston University,            Fax: (44) 121 359 4094
Aston Triangle,              Email: J.P.Fletcher@ASTON.AC.UK
BIRMINGHAM B4 7ET  U.K.   
-------------------------------------------------------------------
CEAC Web site http://www.ceac.aston.ac.uk/
-------------------------------------------------------------------