locked
redefining structure RRS feed

  • Question

  • Hi,

    I have a structure like below

    typedef struct bio_dgram_data_st
     {
     struct sockaddr peer;
     unsigned int connected;
      } bio_dgram_data;

    Now definition of sockaddr is sockaddr_in on my OS (it's a properiety OS). The fields are same. Now the code that defines this structure uses it in lot of places and I don't want to change sockaddr to sockaddr_in at all places. Is there a better way to do it using #define macros ? or that is the only way to do it...

    Kunal

     

     

    Sunday, January 2, 2011 10:20 PM

All replies

  • Try a C++ forum...It does not look like you need help in using windbg.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Monday, January 3, 2011 2:15 AM