avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] Compilation error in power.h due to an extra \


From: Senthil Kumar Selvaraj
Subject: [avr-libc-dev] Compilation error in power.h due to an extra \
Date: Thu, 23 May 2013 18:27:05 +0530
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

  Including power.h and compiling for an atmega88 device with the latest
  avr-libc fails because of an extra \ in the nested conditional directive for 
  RFA/RFR devices.
  
  The attached (trivial) patch fixes this - I thought it wasn't worth
  filing this as a bug. If ok, could someone commit please?

  Regards
  Senthil


Index: include/avr/power.h
===================================================================
--- include/avr/power.h (revision 2401)
+++ include/avr/power.h (working copy)
@@ -1642,7 +1642,7 @@
 || defined(__AVR_ATmega644RFR2__) \
 || defined(__AVR_ATmega256RFR2__) \
 || defined(__AVR_ATmega128RFR2__) \
-|| defined(__AVR_ATmega64RFR2__) \
+|| defined(__AVR_ATmega64RFR2__) 
     , clock_div_1_rc = 15
 #endif
 } clock_div_t;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]