POV-Ray : Newsgroups : povray.unix : Some notes about Cygwin/MinGW compilation : Re: Some notes about Cygwin/MinGW compilation Server Time
1 May 2024 01:51:23 EDT (-0400)
  Re: Some notes about Cygwin/MinGW compilation  
From: Warp
Date: 3 Nov 2002 11:10:46
Message: <3dc54a86@news.povray.org>
Włodzimierz ABX Skiba <abx### [at] abxartpl> wrote:
> #define AVOID_NAME_COLLISION_PATCH
> and I will catch there all possible collisions with different compilators.
> Then I used in sources when needed
> #ifdef AVOID_NAME_COLLISION_PATCH
>   POV_BLOB
> #else
>   BLOB
> #endif

  Wouldn't it just be easier to add a singe line (to config.h or wherever):

#define BLOB POV_BLOB

  Nothing else is needed. The preprocessor will change all instances
of the identifier 'BLOB' to 'POV_BLOB' before giving the source to the
compiler.

  (Of course that #define must be placed *after* the windows-specific
#includes which might define 'BLOB' in their own way.)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.