<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Den 2022-03-17 kl. 19:30, skrev Michal
      Sudolsky:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABoc_47UuEuCyMdd5dLGCRt7=kwUuq1q0Q_vT4=NsRZYCzyA8A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Thu, Jan 7, 2021 at 4:21
            PM James K. Lowden <<a
              href="mailto:jklowden@schemamania.org"
              moz-do-not-send="true" class="moz-txt-link-freetext">jklowden@schemamania.org</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">On Thu, 7 Jan 2021
            01:25:43 +0100<br>
            Heiko Lewin <<a href="mailto:hlewin@gmx.de"
              target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">hlewin@gmx.de</a>> wrote:<br>
            <br>
            > Can't you just "#define WIN32 WIN32"?<br>
            <br>
            +1<br>
            <br>
            Why didn't I think of that? </blockquote>
          <div><br>
          </div>
          <div>error: 'WIN32' was not declared in this scope<br>
               13 | #define WIN32 WIN32<br>
                  |                             ^~~~~<br>
          </div>
          <div><br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">I think this is
            equivalent and portable:</blockquote>
          <div><br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">        #ifdef WIN32<br>
                      #define WIN32_WAS_SET  WIN32<br>
                      #undef WIN32<br>
                      #endif<br>
                      ....<br>
                      #ifdef WIN32_WAS_SET<br>
                      #define WIN32  WIN32_WAS_SET<br>
                      #undef WIN32_WAS_SET<br>
                      #endif</blockquote>
          </div>
          <div><br>
          </div>
          <div>C preprocessor does not work like that. None of these
            "tricks" would work.<br>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <p>The WIN32 define clash was fixed in cairomm 1.16.1. Use
      Cairo::Surface::Type::WIN32_SURFACE instead of
      Cairo::Surface::Type::WIN32.</p>
    <p>/Kjell <br>
    </p>
  </body>
</html>