ch03s09.html 4.3 KB

12345678910111213141516171819
  1. <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Header Files</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><meta name="keywords" content="Intellon, Atheros, Qualcomm, HomePlug, powerline, communications, INT6000, INT6300, INT6400, AR7400, AR7420"><link rel="home" href="index.html" title="Qualcomm Atheros Open Powerline Toolkit"><link rel="up" href="ch03.html" title="Chapter 3.  Software"><link rel="prev" href="ch03s08.html" title="Microsoft Solution Files"><link rel="next" href="ch03s10.html" title="Compiler Constants"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
  2. Header Files
  3. </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s08.html">Prev</a> </td><th width="60%" align="center">Chapter 3. 
  4. Software
  5. </th><td width="20%" align="right"> <a accesskey="n" href="ch03s10.html">Next</a></td></tr></table><hr></div><div class="section" title="Header Files"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="software-header-files"></a>
  6. Header Files
  7. </h2></div></div></div><p>
  8. Atheros <span class="application">Open Powerline Toolkit</span> programs reference POSIX functions and constants where possible. Specifically, they make wide use of the data types <code class="constant">uint8_t</code>, <code class="constant">uint16_t</code> and <code class="constant">uint32_t</code> which are defined in file <code class="filename">stdint.h</code>. Microsoft <span class="productname">Visual C</span>™ and <span class="productname">.NET</span>™ environments do not include this file. Consequently, Atheros provides an <a class="ulink" href="stdint.h.html" target="_top">alternative</a> in folder <code class="filename">../Windows/include</code>. This file is open source and was designed to be compatible with the Microsoft development environments; however, you may occassionally experience warnings about the "benign redefinition" for some of these data types.
  9. </p><p>
  10. Where possible, this toolkit includes <span class="productname">OpenBSD</span>™ network constants because the OpenBSD project pioneered many of the common network protocols and applications used today. Some systems do not include all <span class="productname">OpenBSD</span>™ network header files or do not define all <span class="productname">OpenBSD</span>™ network constants. Specifically, Microsoft systems do not provide file <code class="filename">netinet/if_ether.h</code> and so an <a class="ulink" href="if_ether.h.html" target="_top">alternative</a> is included in folder <code class="filename">../Windows/include/netinet</code> and <span class="productname">Windows</span>™ applications should include it.
  11. </p><p>
  12. When the <span class="command"><strong>gcc -std=iso9899:1999</strong></span> option is enabled, some <span class="productname">OpenBSD</span>™ header files found on <span class="application">GNU/Linux</span> systems will exclude required constant definitions because they do not conform to that standard. Atheros is investigating the best way to address this problem.
  13. </p><p>
  14. On some systems, such as <span class="productname">OpenBSD</span>™, <span class="productname">FreeBSD</span>™ and <span class="productname">Mac OS X</span>™, header files must be included in specific order to avoid compilation errors. We have done our best to deal with this problem. Visit the <a class="ulink" href="http://www.gnu.org/software/hello/manual/autoconf/Header-Portability.html" target="_top">GNU Autocnf Project</a> for more information about this.
  15. </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s08.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch03s10.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
  16. Microsoft Solution Files
  17.  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 
  18. Compiler Constants
  19. </td></tr></table></div></body></html>