Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. A question about #define WIN32 and "sbrk"

A question about #define WIN32 and "sbrk"

Scheduled Pinned Locked Moved Managed C++/CLI
questionlinux
3 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    George Ma
    wrote on last edited by
    #1

    Hi, everyone! Look at the source codes, -------- /* #define WIN32 */ #ifdef WIN32 #define MORECORE wsbrk #endif -------- Such is the comments, -------- WIN32 (default: undefined) Define this on MS win (95, nt) platforms to compile in sbrk emulation. -------- I have two questions, 1. What means WIN32? When the variable "WIN32" becomes defined? When it is not defined? 2. What means "sbrk" in the comment? What means "wsbrk"? Btw: the software is written for both Windows and Linux platforms. Cheers, George

    A 1 Reply Last reply
    0
    • G George Ma

      Hi, everyone! Look at the source codes, -------- /* #define WIN32 */ #ifdef WIN32 #define MORECORE wsbrk #endif -------- Such is the comments, -------- WIN32 (default: undefined) Define this on MS win (95, nt) platforms to compile in sbrk emulation. -------- I have two questions, 1. What means WIN32? When the variable "WIN32" becomes defined? When it is not defined? 2. What means "sbrk" in the comment? What means "wsbrk"? Btw: the software is written for both Windows and Linux platforms. Cheers, George

      A Offline
      A Offline
      Anders Molin
      wrote on last edited by
      #2

      Please only post in one forum... This question don't have anything to do with either Managed C++ or ATL/WTL/STL :suss: - Anders Money talks, but all mine ever says is "Goodbye!"

      G 1 Reply Last reply
      0
      • A Anders Molin

        Please only post in one forum... This question don't have anything to do with either Managed C++ or ATL/WTL/STL :suss: - Anders Money talks, but all mine ever says is "Goodbye!"

        G Offline
        G Offline
        George Ma
        wrote on last edited by
        #3

        Thanks, Anders pal! I will accept your advice. I cross-posted because my boss is asked me to hand in the project immediately, but I am in trouble as you see. Cheers, George

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups