<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I use live555 in a browser plugin to be cross-platform, but windows for now.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Everytime I update the live555 libs I go into Boolean.hh in UsageEnvironment and add a guard. I got this workaround from one of the GMANE archives I think. I was just wondering if there is a better way or if maybe this should be in the live555 code!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I add the #ifndef __MSHTML_LIBRARY_DEFINED__ guard on line 34. It prevents multiple definition errors.<o:p></o:p></p><p class=MsoNormal>And then I add the winsock2 and mshtml includes on 21 and 22 to make it always work in windows builds. (maybe these should be in a #ifdef WINDOWS ?) <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I know this is just to get around the windowsisms and the often times silly way they do things <span style='font-family:Wingdings'>L</span> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>By making these changes in this one location, for me, it solves making changes all over. (that I never could get to work)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>/**********<o:p></o:p></p><p class=MsoNormal> 2 This library is free software; you can redistribute it and/or modify it under<o:p></o:p></p><p class=MsoNormal> 3 the terms of the GNU Lesser General Public License as published by the<o:p></o:p></p><p class=MsoNormal> 4 Free Software Foundation; either version 2.1 of the License, or (at your<o:p></o:p></p><p class=MsoNormal> 5 option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)<o:p></o:p></p><p class=MsoNormal> 6 <o:p></o:p></p><p class=MsoNormal> 7 This library is distributed in the hope that it will be useful, but WITHOUT<o:p></o:p></p><p class=MsoNormal> 8 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS<o:p></o:p></p><p class=MsoNormal> 9 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for<o:p></o:p></p><p class=MsoNormal> 10 more details.<o:p></o:p></p><p class=MsoNormal> 11 <o:p></o:p></p><p class=MsoNormal> 12 You should have received a copy of the GNU Lesser General Public License<o:p></o:p></p><p class=MsoNormal> 13 along with this library; if not, write to the Free Software Foundation, Inc.,<o:p></o:p></p><p class=MsoNormal> 14 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA<o:p></o:p></p><p class=MsoNormal> 15 **********/<o:p></o:p></p><p class=MsoNormal> 16 #ifndef _BOOLEAN_HH<o:p></o:p></p><p class=MsoNormal> 17 #define _BOOLEAN_HH<o:p></o:p></p><p class=MsoNormal> 18 <o:p></o:p></p><p class=MsoNormal> 19 <o:p></o:p></p><p class=MsoNormal> 20 //include this to force the order and help modified Boolean.hh to work.<o:p></o:p></p><p class=MsoNormal> 21 #include <WinSock2.h><o:p></o:p></p><p class=MsoNormal> 22 #include <MsHTML.h><o:p></o:p></p><p class=MsoNormal> 23 <o:p></o:p></p><p class=MsoNormal> 24 <o:p></o:p></p><p class=MsoNormal> 25 <o:p></o:p></p><p class=MsoNormal> 26 #ifdef __BORLANDC__<o:p></o:p></p><p class=MsoNormal> 27 #define Boolean bool<o:p></o:p></p><p class=MsoNormal> 28 #define False false<o:p></o:p></p><p class=MsoNormal> 29 #define True true<o:p></o:p></p><p class=MsoNormal> 30 #else<o:p></o:p></p><p class=MsoNormal> 31 <o:p></o:p></p><p class=MsoNormal> 32 <o:p></o:p></p><p class=MsoNormal> 33 typedef unsigned Boolean;<o:p></o:p></p><p class=MsoNormal> 34 #ifndef __MSHTML_LIBRARY_DEFINED__<o:p></o:p></p><p class=MsoNormal> 35 #ifndef False<o:p></o:p></p><p class=MsoNormal> 36 const Boolean False = 0;<o:p></o:p></p><p class=MsoNormal> 37 #endif<o:p></o:p></p><p class=MsoNormal> 38 #ifndef True<o:p></o:p></p><p class=MsoNormal> 39 const Boolean True = 1;<o:p></o:p></p><p class=MsoNormal> 40 #endif<o:p></o:p></p><p class=MsoNormal> 41 <o:p></o:p></p><p class=MsoNormal> 42 #endif<o:p></o:p></p><p class=MsoNormal> 43 #endif<o:p></o:p></p><p class=MsoNormal> 44 <o:p></o:p></p><p class=MsoNormal> 45 #endif<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <o:p></o:p></p></div></body></html>