12-28-2009
2 Questions:
- What do you mean by "flagged"? Do you get an error or warning? If so, could you post the message?
- Is this code part of the configure script itself, or part of the package source?
---------- Post updated at 07:54 ---------- Previous update was at 07:50 ----------
Quote from the
GCC documentation
Quote:
__GNUC__
__GNUC_MINOR__
__GNUC_PATCHLEVEL__
These macros are defined by all GNU compilers that use the C preprocessor: C, C++, Objective-C and Fortran. Their values are the major version, minor version, and patch level of the compiler, as integer constants. For example, GCC 3.2.1 will define __GNUC__ to 3, __GNUC_MINOR__ to 2, and __GNUC_PATCHLEVEL__ to 1. These macros are also defined if you invoke the preprocessor directly.
So your example seems to be a cheap trick to check the compiler version. The reason might be that there are some problems if it's compiled with GCC version 3, and this code disables/enables some compiler features or code parts that caused that problem.
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I got some job running on Sun Unix system, which sends the email to outlook client on windows after completion.
Few of the emails are coming with SUSPECT: prefixes.
I am using unix command mailx to send the message. Messages are simple text
Any idea on this
Thanks
Ashok (1 Reply)
Discussion started by: akrathi
1 Replies
2. UNIX for Dummies Questions & Answers
Hello,
Do we have any freeware which helps in alignment of code wrt spaces, sections etc?
Thanks (6 Replies)
Discussion started by: eagercyber
6 Replies
3. Shell Programming and Scripting
I bet this is really simple but I can only find silly long solutions.
Im trying to read the second word of each line in a file and pipe it out, in Win32 it looks something like:
for /F "tokens=2" %%b in (file.txt) do etc..
Sorry for the probably dumbass question! (1 Reply)
Discussion started by: joe19oo.c
1 Replies
4. Programming
Dear friend,
Here im saathis, currently im doing my final year project in VB6. My project is speech door access system. Im using microsoft access 2007 as database platform which user detail and set password. User have to register first then they have to speech the password which fix in... (2 Replies)
Discussion started by: saathis
2 Replies
5. UNIX for Advanced & Expert Users
Hi, all:
The physical network interface card should drop the packets if it doesn't match the MAC address of the NIC. In my PC, however, the packets which shoud be dropped trigger the interrupt function of my own driver and are recieved as skb to be transfered to the upper layer!
Why? How... (1 Reply)
Discussion started by: liklstar
1 Replies
6. AIX
Hi
I need a list of code analysis tools for C programs, that can work on AIX environment such as :
dynamic or static code analysis
Code Complexity Measures
Test Coverage Analyzer
Unit tests
profiling tools
Source code formatter
I've found several tools but not compatible with AIX... (0 Replies)
Discussion started by: SteAlma
0 Replies
LEARN ABOUT DEBIAN
language::intercal::bytecode
INTERCAL::ByteCode(3pm) User Contributed Perl Documentation INTERCAL::ByteCode(3pm)
TITLE
Language::INTERCAL::Bytecode - intermediate language
DESCRIPTION
The CLC-INTERCAL compiler works by producing bytecode from the program source; this bytecode can be interpreted to execute the program
immediately; alternatively, a backend can produce something else from the bytecode, for example C or Perl source code which can then be
compiled to your computer's native object format.
The compiler itself is just some more bytecode. Thus, to produce the compiler you need a compiler compiler, and to produce that you need a
compiler compiler compiler; to produce the latter you would need a compiler compiler compiler compiler, and so on to infinity. To simplify
the programmer's life (eh?), the compiler compiler is able to compile itself, and is therefore identical to the compiler compiler compiler
(etcetera).
The programmer can start the process because a pre-compiled compiler compiler, in the form of bytecode, is provided with the CLC-INTERCAL
distribution; this compiler compiler then is able to compile all other compilers, as well as to rebuild itself if need be.
See the online manual or the HTML documentation included with the distribution for more information about this.
SEE ALSO
A qualified psychiatrist
AUTHOR
Claudio Calvelli - intercal (whirlpool) sdf.lonestar.org (Please include the word INTERLEAVING in the subject when emailing that address,
or the email may be ignored)
perl v5.8.8 2008-03-29 INTERCAL::ByteCode(3pm)