File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -273,70 +273,8 @@ extern int fsync(int fd);
273273 * WRAPPER FOR <math.h> *
274274 ************************/
275275
276- /* On the 68K Mac, when using CFM (Code Fragment Manager),
277- <math.h> requires special treatment -- we need to surround it with
278- #pragma lib_export off / on...
279- This is because MathLib.o is a static library, and exporting its
280- symbols doesn't quite work...
281- XXX Not sure now... Seems to be something else going on as well... */
282-
283276#ifndef HAVE_HYPOT
284277extern double hypot (double , double );
285- #ifdef MWERKS_BEFORE_PRO4
286- #define hypot we_dont_want_faulty_hypot_decl
287- #endif
288- #endif
289-
290- #ifndef HAVE_HYPOT
291- #ifdef __MWERKS__
292- #undef hypot
293- #endif
294- #endif
295-
296- #if defined(USE_MSL ) && defined(__MC68K__ )
297- /* CodeWarrior MSL 2.1.1 has weird define overrides that don't work
298- ** when you take the address of math functions. If I interpret the
299- ** ANSI C standard correctly this is illegal, but I haven't been able
300- ** to convince the MetroWerks folks of this...
301- */
302- #undef acos
303- #undef asin
304- #undef atan
305- #undef atan2
306- #undef ceil
307- #undef cos
308- #undef cosh
309- #undef exp
310- #undef fabs
311- #undef floor
312- #undef fmod
313- #undef log
314- #undef log10
315- #undef pow
316- #undef sin
317- #undef sinh
318- #undef sqrt
319- #undef tan
320- #undef tanh
321- #define acos acosd
322- #define asin asind
323- #define atan atand
324- #define atan2 atan2d
325- #define ceil ceild
326- #define cos cosd
327- #define cosh coshd
328- #define exp expd
329- #define fabs fabsd
330- #define floor floord
331- #define fmod fmodd
332- #define log logd
333- #define log10 log10d
334- #define pow powd
335- #define sin sind
336- #define sinh sinhd
337- #define sqrt sqrtd
338- #define tan tand
339- #define tanh tanhd
340278#endif
341279
342280
Original file line number Diff line number Diff line change @@ -183,16 +183,9 @@ int TkMacConvertEvent(EventRecord *eventPtr);
183183
184184staticforward int PyMacConvertEvent (EventRecord * eventPtr );
185185
186- #if defined(__CFM68K__ ) && !defined(__USING_STATIC_LIBS__ )
187- #pragma import on
188- #endif
189-
190186#include <SIOUX.h>
191187extern int SIOUXIsAppWindow (WindowPtr );
192188
193- #if defined(__CFM68K__ ) && !defined(__USING_STATIC_LIBS__ )
194- #pragma import reset
195- #endif
196189#endif /* macintosh */
197190
198191#ifndef FREECAST
You can’t perform that action at this time.
0 commit comments