equivalent linux header files for windows in c language

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajni
    New Member
    • Dec 2012
    • 2

    equivalent linux header files for windows in c language

    Is there any linux equivalent header files for windows in c programming for the following header files(linux)
    Code:
    #include <asm/uaccess.h>
    #include <asm/system.h>
    #include <linux/types.h>
    #include <linux/kernel.h>
    #include <linux/string.h>
    #include <linux/mm.h>
    #include <linux/socket.h>
    #include <linux/in.h>
    #include <linux/inet.h>
    #include <linux/netdevice.h>
    #include <linux/fcdevice.h>
    #include <linux/skbuff.h>
    #include <linux/errno.h>
    #include <linux/timer.h>
    #include <linux/net.h>
    #include <linux/proc_fs.h>
    #include <linux/init.h>
    #include <net/arp.h>
    Last edited by zmbd; Dec 17 '12, 01:31 PM. Reason: [Z{Please use the <CODE/> button to format posted code/html/sql}]
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    Don't look for equivalent header look for equivalent functions

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      There are equivalent header files for standard C and C++ programming because those are ANSI languages. Neither Linux nor Windows are ANSI so don't look for equivalent header files.

      Comment

      • rajni
        New Member
        • Dec 2012
        • 2

        #4
        Then how we run the same program in windows

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          You will need to make a copy of your code, cange all the header files to Windows header files and rebuild the prograom using a compiler that can produce Windows executables.

          Portability like this is a big deal. It's always a problem.

          Comment

          Working...