<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cordney* &#187; code</title>
	<atom:link href="http://cordney.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://cordney.com</link>
	<description>security, technology, life</description>
	<lastBuildDate>Tue, 11 Oct 2011 05:16:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Detecting GCC vs. Clang/LLVM</title>
		<link>http://cordney.com/2011/09/18/detecting-gcc-vs-clangllvm/</link>
		<comments>http://cordney.com/2011/09/18/detecting-gcc-vs-clangllvm/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 23:24:52 +0000</pubDate>
		<dc:creator>cordney*</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[clang]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[llvm]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://cordney.com/?p=171</guid>
		<description><![CDATA[The crux of the matter is that Clang also defines the __GNUC__ macros, which took me an hour or so to debug. So if you need a GCC vs. Clang (vs. LLVM-GCC) switch, you _must_ check for Clang/LLVM first. #if defined __clang__ /* The Clang frontend to LLVM (Clang) */ #define COMPILER "Clang" #elif defined [...]]]></description>
			<content:encoded><![CDATA[<p>The crux of the matter is that Clang <a href="http://predef.sourceforge.net/precomp.html#sec4">also defines</a> the <em>__GNUC__</em> macros, which took me an hour or so to debug. So if you need a GCC vs. Clang (vs. LLVM-GCC) switch, you _must_ check for Clang/LLVM first.</p>
<p><code><br />
#if defined __clang__ /* The Clang frontend to LLVM (Clang) */<br />
#define COMPILER "Clang"<br />
#elif defined __llvm__ /* The GCC frontend to LLVM (LLVM-GCC) */<br />
#define COMPILER "LLVM-GCC"<br />
#elif defined __GNUC__ /* The GNU GCC compiler */<br />
#define COMPILER "GCC"<br />
#else<br />
#define COMPILER "Unknown"<br />
#endif<br />
</code></p>
<p>Note: Code is public domain, use it freely.</p>
]]></content:encoded>
			<wfw:commentRss>http://cordney.com/2011/09/18/detecting-gcc-vs-clangllvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>samplecode: [Cocoa] Fullscreen Toolbar</title>
		<link>http://cordney.com/2007/01/13/samplecode-cocoa-fullscreen-toolbar/</link>
		<comments>http://cordney.com/2007/01/13/samplecode-cocoa-fullscreen-toolbar/#comments</comments>
		<pubDate>Sat, 13 Jan 2007 19:37:54 +0000</pubDate>
		<dc:creator>cordney*</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://cordney.com/2007/01/13/samplecode-cocoa-fullscreen-toolbar/</guid>
		<description><![CDATA[This is the Fullscreen Toolbar I have written for Q. The version for Q is slightly modified to work with the host-cocoa part [see in svn: http://www.kju-app.org/proj/browser/trunk/host-cocoa/FSControls]. This code is public domain. Feel free to use, modify and redistribute it. Download XCode Project]]></description>
			<content:encoded><![CDATA[<p>This is the Fullscreen Toolbar I have written for <a href="http://kju-app.org">Q</a>. The version for Q is slightly modified to work with the host-cocoa part [see in svn: <a href="http://www.kju-app.org/proj/browser/trunk/host-cocoa/FSControls">http://www.kju-app.org/proj/browser/trunk/host-cocoa/FSControls</a>].</p>
<p>This code is public domain. Feel free to use, modify and redistribute it.</p>
<p><a href="http://cordney.com/wp-content/uploads/fullscreentoolbar.zip">Download XCode Project</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cordney.com/2007/01/13/samplecode-cocoa-fullscreen-toolbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

