Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8123169

Why is D_STATIC_CPPLIB used in javafx-font-native and other libs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 8
    • javafx
    • None

    Description

      I noticed since I added this line "#include <new>" to directwrite.cpp I started to get the following warning:
       [exec] C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/INCLUDE\yvals.h(371) : warning CRT1007: _STATIC_CPPLIB is deprecated

      My question is why do even set this flag ?

      I verified it is set for fonts, decora, prism-comom, prism-d3d, glass (glass at least also sets D_DISABLE_DEPRECATE_STATIC_CPPLIB).

      The best indication of why this flags is set that I could found was:
      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6347028
      I don't think the reason stills hold true.

      Also note the flag also caused the same warning in the past here:
      http://bugs.sun.com/view_bug.do?bug_id=6975480

      Another flag we set in fonts (for no good reason) is -DWIN32_LEAN_AND_MEAN
      http://blogs.msdn.com/b/oldnewthing/archive/2009/11/30/9929944.aspx

      Attachments

        Activity

          People

            fheidric Felipe Heidrich (Inactive)
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: